static char* _escape_xml (const char*);
-static int _recurse_jsonObjectToXML(jsonObject*, growing_buffer*);
+static int _recurse_jsonObjectToXML(const jsonObject*, growing_buffer*);
char* jsonObjectToXML(const jsonObject* obj) {
else
buffer_add(res_xml,"<array>");
- for ( int i = 0; i!= obj->size; i++ )
- _recurse_jsonObjectToXML(jsonObjectGetIndex(obj,i), res_xml);
+ int i;
+ for ( i = 0; i!= obj->size; i++ )
+ _recurse_jsonObjectToXML(jsonObjectGetIndex(obj,i), res_xml);
buffer_add(res_xml,"</array>");