Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread JSON encoding problem ?
Sun, Jul 21 2013 9:27 AMPermanent Link

lejetou

Hi,

I got an error when commiting TMemo containning CR.
The error is on server side (json server made in php).
When my server try to decode the json string (using json_decode function) it says that json is malformed because it's containing CR inside a field value (between the "..").

After a quick search I've found that JSON format doesn't allow CR/LF inside a field value, but EWB send CR in the JSON string without escaping them.

Is it an issue ?

Any workaround ?

Thanks.
Sun, Jul 21 2013 2:00 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< I got an error when commiting TMemo containning CR.
The error is on server side (json server made in php).
When my server try to decode the json string (using json_decode function)
it says that json is malformed because it's containing CR inside a field
value (between the "..").

After a quick search I've found that JSON format doesn't allow CR/LF inside
a field value, but EWB send CR in the JSON string without escaping them. >>

I'll look into this.

Thanks,

Tim Young
Elevate Software
www.elevatesoft.com

Image