Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 3.79 KB

File metadata and controls

68 lines (50 loc) · 3.79 KB
layout default
title JSONC

Tools and Libraries

Several tools and libraries support JSONC, enabling developers to parse and generate JSONC data easily. This is a non-exhaustive list organized by programming language.

Parsers

Language Tool/Library Comments Trailing Commas Notes
C++ nlohmann/json 🟡 1 🟡 2
C++ RapidJSON 🟡 3 🟡 4
C++ stephenberry/glaze 🟢 5 🔴
Elixir massivefermion/jsonc 🟢 🟢 Includes additional extensions
Go HuJSON 🟢 🟢
Go tidwall/jsonc 🟢 🟢
Java Jackson 🟡 6 🟡 7
JavaScript microsoft/node-jsonc-parser 🟢 🟡 8
Kotlin kotlinx.serialization.json 🟡 9 🟡 10
PHP otar/jsonc 🟢 🟢
Python n-takumasa/json-with-comments 🟢 🟢
Rust dprint/jsonc-parser 🟢 🟢
Swift steelbrain/JSONCKit 🟢 🟢

Legend:

🟢: Default support
🟡: Optional support
🔴: Unsupported


Footnotes

  1. Use ignore_comments

  2. Use ignore_trailing_commas

  3. Use kParseCommentsFlag

  4. Use kParseTrailingCommasFlag

  5. Use glz::read_jsonc (or using options: glz::opts{.comments = true}). See Documentation.

  6. Use JsonFactory.enable(JsonReadFeature.ALLOW_JAVA_COMMENTS)

  7. Use JsonFactory.enable(JsonReadFeature.ALLOW_TRAILING_COMMA)

  8. Use allowTrailingComma: true

  9. Use allowComments. See Documentation.

  10. Use allowTrailingComma. See Documentation.