-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
👋🏻
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels