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 613282 - It would be nice to have better control on what properties you will serialize
It would be nice to have better control on what properties you will serialize
Status: RESOLVED OBSOLETE
Product: json-glib
Classification: Core
Component: Parser
git master
Other Linux
: Normal enhancement
: ---
Assigned To: json-glib-maint
json-glib-maint
Depends on:
Blocks:
 
 
Reported: 2010-03-18 22:36 UTC by Emmanuele Bassi (:ebassi)
Modified: 2017-09-05 10:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Emmanuele Bassi (:ebassi) 2010-03-18 22:36:56 UTC
( originally filed at: http://bugzilla.openedhand.com/show_bug.cgi?id=1860 )

Currently json-glib simply serializes everything that is readable.

In my own use cases, its only important to serialize what is also writable, since I happen to plan on using that same output to deserialize.

There is also the possibility you dont want or need to serialize properties that are at a default value.

While I doubt all this know-how belongs in json-glib, perhaps some kind of a general signal on the json parser in use could allow a more general control on what properties are getting serialized.

would allow for a construct like:

 - parser = create_parser ( file );
 - connect_signal (parser);
 - root = obtain_root ( parser );
 - json_gobject_new (root);

Anyway, maybe that's a lot of indirection/overhead to call a signal to get each property serialized - just a thought.
Comment 1 André Klapper 2012-03-13 22:08:43 UTC
[Fixing Default QA assignee for json-glib - see 613232#c1. Sorry for bugmail noise.]
Comment 2 Emmanuele Bassi (:ebassi) 2017-09-05 10:38:28 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/1.