Re:Hjson, the Human JSON
by PuerkitoBio on Thursday April 14, 2016 @01:49PM
(#11498912)
Only quoteless strings have no escapes, and according to the docs the rule is:
(edit: formatting)
[ Parent
| on HN ]
So this
{
foo:one,
bar:two
}Parses to "one," because it is a quoteless string?
What about true and false, is false the boolean constant or a unquoted string "false".
Re:Hjson, the Human JSON
by PuerkitoBio on Thursday April 14, 2016 @08:03PM
(#11501175)
I posted this in another thread here, but it's documented in the linked page:
> A value that is a number, true, false or null in JSON is parsed as a value.
> E.g. '3' is a valid number while '3 times' is a string.