head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.6 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.4 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q3:1.1.1.1.0.8 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.6 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.4 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.2 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2009.10.26.08.27.17; author obache; state dead; branches; next 1.1; 1.1 date 2008.11.05.13.07.14; author obache; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.11.05.13.07.14; author obache; state Exp; branches; next ; desc @@ 1.2 log @Update json-glib to 0.8.0. Overview of changes for 0.8.0 ============================= * Remove the in-tree Vala bindings: they are part of Vala, now * Remove the in-tree Debian packaging * Fix bug #958: JsonGenerator does not escape special characters * Fix bug #965: Conditionally compile the test suite * Display the filename and line inside the error messages when loading from a file * Fix bug #1203: Correctly terminate a string array * Fix bug #1393: Regression tests fail on OpenBSD * Do not leak memory on error code paths * Improve and clean up the build system * Make JsonNode completely opaque * Conditionally generate introspection data on build * Fix bug #1353: Do not overwrite when copying * Deprecate json_object_add_member() * Add convenience accessors for JsonObject and JsonArray * Add convenience iteration functions for JsonObject and JsonArray * Automatically promote integers to gint64, to compensate for the lack of integer size in the JSON specificiation * Disallow the inclusion of single header files: only json-glib,h and json-gobject.h can be included directly * Documentation fixes * Clean up and remove code duplication inside the Parser object @ text @$NetBSD: patch-aa,v 1.1 2008/11/05 13:07:14 obache Exp $ http://bugzilla.openedhand.com/show_bug.cgi?id=1203 --- json-glib/json-gobject.c.orig 2008-05-20 09:04:47.000000000 +0000 +++ json-glib/json-gobject.c @@@@ -189,7 +189,7 @@@@ json_deserialize_pspec (GValue *valu { JsonArray *array = json_node_get_array (node); guint i, array_len = json_array_get_length (array); - GPtrArray *str_array = g_ptr_array_sized_new (array_len); + GPtrArray *str_array = g_ptr_array_sized_new (array_len + 1); for (i = 0; i < array_len; i++) { @@@@ -201,6 +201,7 @@@@ json_deserialize_pspec (GValue *valu if (json_node_get_string (val) != NULL); g_ptr_array_add (str_array, (gpointer) json_node_get_string (val)); } + g_ptr_array_add (str_array, NULL); g_value_set_boxed (value, str_array->pdata); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Import json-glib-0.6.2 as textproc/json-glib. JSON-GLib is a library providing serialization and deserialization support for the JavaScript Object Notation (JSON) format described by RFC 4627 JSON-GLib uses GLib native data types and the generic value container GValue for ease of development. It also provides integration with the GObject classes for direct serialization into, and deserialization from, JSON data streams. @ text @@