Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse JSON array with null element(s) #40

Closed
aderusha opened this issue Jan 20, 2019 · 1 comment
Closed

Parse JSON array with null element(s) #40

aderusha opened this issue Jan 20, 2019 · 1 comment

Comments

@aderusha
Copy link

If I publish the following message, the payload is correctly parsed as a JSON array:

[1,2,3,"a","b","c"]

The following (spec-compliant) payloads will not be shown as JSON arrays:

[1,2,3,,"a","b","c"]
[1,2,3,,"a",,"b","c"]
[1,2,3,,,"a","b","c"]

@thomasnordquist
Copy link
Owner

I'm not certain that they are spec compliant (but I didn't read the specs either).
If I run them through the JSON-parser from Chrome, I get this:

bildschirmfoto 2019-01-20 um 16 54 36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants