You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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...
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?
The text was updated successfully, but these errors were encountered: