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

to-json() doesn't comply with newest JSON spec #22

Closed
zoffixznet opened this issue Jan 12, 2016 · 0 comments
Closed

to-json() doesn't comply with newest JSON spec #22

zoffixznet opened this issue Jan 12, 2016 · 0 comments

Comments

@zoffixznet
Copy link
Contributor

The newest JSON spec—contrary to previous versions—does allow non-object/array things at the top level. Reference: http://rfc7159.net/rfc7159#rfc.section.2 (second paragraph, especially). This module's from-json, however, displays an error when attempting to decode JSON conforming to this newest spec:

$ perl6 -MJSON::Tiny -e 'say from-json "42"'
Input (2 characters) is not a valid JSON string
  in sub from-json at /home/zoffix/.rakudobrew/moar-nom/install/share/perl6/site/sources/411712BEEA6ABF6E99725E6A8837298C923B325F line 59
  in block <unit> at -e line 1
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

1 participant