Error with JSON response and stuck in a big way
Error with JSON response and stuck in a big way
UPEngineer
Posts: 93Questions: 0Answers: 1
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
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.