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

Confused about support for rfc7159 #46

Open
titonbarua opened this issue Jul 24, 2016 · 1 comment
Open

Confused about support for rfc7159 #46

titonbarua opened this issue Jul 24, 2016 · 1 comment

Comments

@titonbarua
Copy link

According to https://tools.ietf.org/html/rfc7159.html (which supersedes https://tools.ietf.org/html/rfc4627.html) the root JSON entity can be not only an array or an object, but also a value(string, int etc.). For example, "hw" is a valid root JSON entity according to new rfc. So far, I've not found a way to decode such JSON objects with jshon. For example, echo '"hw"' | jshon -u spits out this: json read error: line 1 column 4: '[' or '{' expected near '"hw"'.

Does this tool support rfc7159?

@thinrope
Copy link

The tools does not seem to care about the new RFC, but the error you are getting is from the underlying Janisson library. There is a currently unfixed issue 240 about it...

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