Hi,
I have a problem with the regex of Zend_Json::prettyPrint. When in my JSON response I have a string with a comma inside like
"stack, overflow"
the string is splited in two:
"stack,
overflow"
and I would like to have the string on the same line and not splited. In the file Zend/Json I found the regex:
$tokens = preg_split('|([\{\}\]\[,])|', $json, -1, PREG_SPLIT_DELIM_CAPTURE);
I don't arrive to correct the regex to avoid the split when there is a comma inside the double quote.
Here is the JSON for the test:
{ "test":"stack, overflow" }
I hope somebody will be able to help me.
Thanks in advance,
Maxime.