Error with JSON response and stuck in a big way

Error with JSON response and stuck in a big way

UPEngineerUPEngineer Posts: 93Questions: 0Answers: 1
edited March 2010 in General
I have a field in my mysql db that is a text field and it has carriage return/line feeds in it.

When I try getting this into my datatables, it just hangs. When I put in my return JSON from firebug into JSONlint, I get an unexpected TINVALID error.

I have tried using the php function nl2br() and everything else I can think of.

How would I go about allowing carriage returns in my returned JSON data set?

I might add that if I don't have the carriage returns, it works just fine.

Thanks
This discussion has been closed.