The Interwebs are no help on this one. We're encoding data in ColdFusion using serializeJSON
and trying to decode it in PHP using json_decode
. Most of the time, this is working fine, but in some cases, json_decode
returns NULL
. We've looked for the obvious culprits, but serializeJSON
seems to be formatting things as expected. What else could be the problem?
UPDATE: A couple of people (wisely) asked me to post the output that is causing the problem. I would, except we just discovered that the result set is all of our data (listing information for 2300+ rental properties for a total of 565,135 ASCII characters)! That could be a problem, though I didn't see anything in the PHP docs about a max size for the string. What would be the limiting factor there? RAM?
UPDATE II: It looks like the problem was that a couple of our users had copied and pasted Microsoft Word text with "smart" quotes. Those pesky users...