After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747094 - Please make json-glib optionally strictly following RFC7159
Please make json-glib optionally strictly following RFC7159
Status: RESOLVED OBSOLETE
Product: json-glib
Classification: Core
Component: Core
git master
Other Linux
: Normal enhancement
: ---
Assigned To: json-glib-maint
json-glib-maint
Depends on:
Blocks:
 
 
Reported: 2015-03-31 07:49 UTC by Matěj Cepl
Modified: 2017-09-05 10:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matěj Cepl 2015-03-31 07:49:26 UTC
There is now an official IETF standard for JSON in RFC7159 (http://rfc7159.net/). It would lovely if json-glib optionally enforced all rules in that RFC.
Comment 1 Emmanuele Bassi (:ebassi) 2015-03-31 10:54:50 UTC
I am not opposed to a "strict" mode for JsonParser in any way.

It would help if you could summarise what you consider "strict" enforcement of the new RFC.

Off the top of my head, the only thing we allow are comments, mostly because JsonScanner is a fork of GScanner.
Comment 2 Emmanuele Bassi (:ebassi) 2015-03-31 11:30:06 UTC
I'd like to add that it's probably going to be easier, and more maintainable in the longer term, if this story was part of a larger refactoring of JsonParser:

 - write a JSON tokenizer not based on GScanner
 - ensure that the JSON tokenizer works in strict and "relaxed" mode
 - ensure that the JSON tokenizer works on input streams and partial reads
 - ensure that the JSON tokenizer works in terms of json-glib data structures
 - rewrite JsonParser on top of the tokenizer, and only use it for signal emission and general purpose API

Ideally, the new JSON tokenizer could be public, but even a private API would be fine.
Comment 3 Emmanuele Bassi (:ebassi) 2017-09-05 10:41:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/json-glib/issues/15.