3 ms·
Is it intentional that it accepts invalid JSON? I ask only because most of the examples on that page would not be valid as the name part of the key:value pairs
by buro9 13y ago
Is it intentional that it accepts invalid JSON?
I ask only because most of the examples on that page would not be valid as the name part of the key:value pairs needs to be quoted.
PS: Don't upvote this, it's a minor detail and the big point about the use-case is far more important than this comment.
- joombar 13y agoParsing is built on top of Clarinet (see where the name comes from?) https://github.com/dscape/clarinet https://github.com/dscape/clarinet Unquoted JSON in docs is a mistake. I'll take a look now.
- Omni5cience 13y agoOne could be forgiven for thinking it comes from SAX, which is probably where Clarinet comes from.
- joombar 13y agoShould be fixed now. Thanks for pointing out. There's a test explicitly for not allowing this: https://github.com/jimhigson/oboe.js/blob/master/test/specs/oboe.component.spec.js#L1257 https://github.com/jimhigson/oboe.js/blob/master/test/specs/...