diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-11-13 10:59:14 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-11-13 10:59:14 +0000 |
commit | 32023e03ca9c976e66b9af949d4aea36e1d4d874 (patch) | |
tree | 0eb182ff6772e41deff228df7d31e7908c087c00 /json-glib/json-gobject.c | |
parent | c669a28d37795be68f3a51e9353f6f9d8e695a52 (diff) | |
download | json-glib-32023e03ca9c976e66b9af949d4aea36e1d4d874.tar.gz |
Change "responsible" to "asked" in the (de)serialization functions docs
We provide fallbacks in case a JsonSerializable object does not translate
a property into a JSON object member and vice versa.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r-- | json-glib/json-gobject.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c index 3357910..f10434d 100644 --- a/json-glib/json-gobject.c +++ b/json-glib/json-gobject.c @@ -331,10 +331,11 @@ json_serialize_pspec (const GValue *real_value, * * Deserializes a JSON data stream and creates the corresponding * #GObject class. If @gtype implements the #JsonSerializableIface - * interface, it will be responsible to deserialize all the JSON - * members into the respective properties; otherwise, the default - * implementation will be used to translate the compatible JSON - * native types. + * interface, it will be asked to deserialize all the JSON members + * into the respective properties; otherwise, the default implementation + * will be used to translate the compatible JSON native types. + * + * Note: the JSON data stream must be an object declaration. * * Return value: a #GObject or %NULL * @@ -461,9 +462,9 @@ json_construct_gobject (GType gtype, * @length: return value for the length of the buffer, or %NULL * * Serializes a #GObject into a JSON data stream. If @gobject implements - * the #JsonSerializableIface interface, it will be responsible to - * serizalize all its properties; otherwise, the default implementation - * will be use to translate the compatible types into JSON native types. + * the #JsonSerializableIface interface, it will be asked to serizalize all + * its properties; otherwise, the default implementation will be use to + * translate the compatible types into JSON native types. * * Return value: a JSON data stream representing the passed #GObject */ |