| layout | default |
|---|---|
| title | JSONC |
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.
| 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
-
Use
ignore_comments↩ -
Use
ignore_trailing_commas↩ -
Use
kParseCommentsFlag↩ -
Use
kParseTrailingCommasFlag↩ -
Use
glz::read_jsonc(or using options:glz::opts{.comments = true}). See Documentation. ↩ -
Use
JsonFactory.enable(JsonReadFeature.ALLOW_JAVA_COMMENTS)↩ -
Use
JsonFactory.enable(JsonReadFeature.ALLOW_TRAILING_COMMA)↩ -
Use
allowTrailingComma: true↩ -
Use
allowComments. See Documentation. ↩ -
Use
allowTrailingComma. See Documentation. ↩