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 707100 - Expose current node on JsonReader
Expose current node on JsonReader
Status: RESOLVED OBSOLETE
Product: json-glib
Classification: Core
Component: Parser
git master
Other All
: Normal enhancement
: ---
Assigned To: json-glib-maint
json-glib-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-30 01:28 UTC by Philip Withnall
Modified: 2017-09-05 10:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Withnall 2013-08-30 01:28:25 UTC
It would be nice if JsonReader exposed its current_node as a property with a getter, so that clients can always get a JsonNode out of the reader easily. At the moment, I believe this is only possible by calling json_reader_get_value() for value nodes, and by manually extracting and re-building the JsonNode for objects or arrays.

Use case: my JSON parser needs to save JSON which it doesn’t recognise (e.g. as introduced in later versions of the specification it conforms to) so that it can re-inject them into JSON objects which are being re-uploaded to a server. This prevents data loss. I want to grab a JsonNode for each unrecognised member of a JSON object.
Comment 1 Emmanuele Bassi (:ebassi) 2017-09-05 10:40:11 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/9.