[Opensrf-commits] r1682 - trunk/src/libopensrf (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Mar 25 18:35:50 EDT 2009


Author: erickson
Date: 2009-03-25 18:35:45 -0400 (Wed, 25 Mar 2009)
New Revision: 1682

Modified:
   trunk/src/libopensrf/osrf_json_object.c
Log:
hash keys have to be escaped like regular strings

Modified: trunk/src/libopensrf/osrf_json_object.c
===================================================================
--- trunk/src/libopensrf/osrf_json_object.c	2009-03-19 19:42:52 UTC (rev 1681)
+++ trunk/src/libopensrf/osrf_json_object.c	2009-03-25 22:35:45 UTC (rev 1682)
@@ -352,7 +352,7 @@
 			while( (item = osrfHashIteratorNext(itr)) ) {
 				if(i++ > 0) OSRF_BUFFER_ADD_CHAR(buf, ',');
 				OSRF_BUFFER_ADD_CHAR(buf, '"');
-				OSRF_BUFFER_ADD(buf, osrfHashIteratorKey(itr));
+                buffer_append_utf8(buf, osrfHashIteratorKey(itr));
 				OSRF_BUFFER_ADD(buf, "\":");
 				add_json_to_buffer( item, buf, do_classname, second_pass );
 			}



More information about the opensrf-commits mailing list