👋🏻
I have the following example JSON5 file contents:
{
// comments
unquoted: 'and you can quote me on that',
singleQuotes: 'I can use "double quotes" here',
lineBreaks: "Look, Mom! \
No \\n's!",
hexadecimal: 0xdecaf,
leadingDecimalPoint: .8675309, andTrailing: 8675309.,
positiveSign: +1,
trailingComma: 'in objects', andIn: ['arrays',],
"backwardsCompatible": "with JSON",
}
Which when using fixjson converts to...
{
"unquoted": "and you can quote me on that",
"singleQuotes": "I can use \"double quotes\" here",
"lineBreaks": "Look, Mom! No \\n's!",
"hexadecimal": 912559,
"leadingDecimalPoint": 0.8675309,
"andTrailing": 8675309,
"positiveSign": 1,
"trailingComma": "in objects",
"andIn": [
"arrays"
],
"backwardsCompatible": "with JSON"
}
So I'm a bit confused by the projects description, which says...
using (relaxed) JSON5.
...as from what I can tell "relaxed" JSON5 still supports things like code comments and other JSON5 features.
Am I just mistaken and this project is essentially will translate JSON5 to JSON?
Thanks.
👋🏻
I have the following example JSON5 file contents:
Which when using fixjson converts to...
{ "unquoted": "and you can quote me on that", "singleQuotes": "I can use \"double quotes\" here", "lineBreaks": "Look, Mom! No \\n's!", "hexadecimal": 912559, "leadingDecimalPoint": 0.8675309, "andTrailing": 8675309, "positiveSign": 1, "trailingComma": "in objects", "andIn": [ "arrays" ], "backwardsCompatible": "with JSON" }So I'm a bit confused by the projects description, which says...
...as from what I can tell "relaxed" JSON5 still supports things like code comments and other JSON5 features.
Am I just mistaken and this project is essentially will translate JSON5 to JSON?
Thanks.