Hi,

Am 15.07.2008 um 09:59 schrieb Peter Schneider:

> When I input a backslash followed by double-quotas and try to send  
> it via JSON
> to my (PHP-)backend, the "decode()" Method of JSON class fails :(
> The input comes from an TextField, where this has to be allowed!
> The frontend side seems to encode the data correct (see below):
>
> {"service":"test_n_debug.rpcTest","method":"echo","id":10,"params": 
> ["\\\""],"server_data":null}
>
> JSONlint [1] also validates this as "Valid JSON". But the backend  
> fails to
> decode it.
> Does anybody have the knowledge why the PHP backend chokes on this?
> Any help/tip/hint would be appreciated. I don't know if this issue  
> is present
> in the other backend implementations (Java,Pearl,Pyhon) too, but  
> should be
> checked anyway.

I just tested it using the Java backend, and the string is decoded  
correctly there.

Regards,

   Andreas


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to