GNOME Bugzilla – Bug 725507
write a new JSON tokenizer
Last modified: 2017-09-05 10:40:33 UTC
JsonParser uses a fork of GScanner called JsonScanner for the tokenization of the input. JsonScanner is generally okay-ish, but its implementation has quirks that make it harder to work with. the main stumbling block is error reporting: some errors in the tokenization (especially when it comes to Unicode parsing) result in assertions, and in other cases the flow bubbles up to the JsonParser, which can then correctly handle them as GError. another issue with JsonScanner is the amount of code we string along from GScanner, and that we don't use. we should drop our GScanner fork, and use an ad hoc tokenizer for JSON.
-- 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/11.