From 32023e03ca9c976e66b9af949d4aea36e1d4d874 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 13 Nov 2007 10:59:14 +0000 Subject: 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. --- json-glib/json-gobject.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'json-glib/json-gobject.c') 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 */ -- cgit v1.2.1