I'm using the JSON parser that comes with Clutter 1.2.8 to parse and generate 
strings that are part of a messaging 

protocol that my application uses and  I've run accross two issues so far.    


1. When I use json_array_add_int_element to build an array and then 
json_generator_to_data the resulting array is empty.
   I expected [ 0, 27 ] but got [ ,  ].   This only happens on a specific 
target platform, 32-bit Moblin.   It works runing in Ubuntu 32-bit on my PC.


2. The parser removes the "\" from any strings which corrupts UTF-8 coded 
strings.    For example.  The string "Grant
’
s iPod" can be

endoded as "Grant\u2019s iPod".  When I passed "Grant\u2019s iPod" into the 
JSON parser it returned a string like "Grantu2019s iPod", 
removing the "\".  Now on the GUI I get the name of the iPod as "Grantu2019s 
iPod".   This happens in both Ubuntu and the Moblin.

Any suggestions on how to handle these two situations would be really 
appreciated.   I've been looking at upgrading to Clutter 1.4 which has a 
different
JSON parser that may fix these problems if there were indeed bugs in the parser.

Thanks,
Grant Nesheim


_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list

Reply via email to