How to convert jCard into first-class JSON?

2019-07-25 08:29发布

问题:

I need a stable and secure convertion algorithm (any language), that can produce the final output as "first class" JSON objects. Example:

  • jCard format: [["version", {}, "text", "4.0"],["fn", {}, "text", "Forrest Gump"]]

  • First-class JSON format: {"version":"4.0","fn":"Forrest Gump"}.

标签: json vcard