Json not decoded if string contains ENTER newline -


i have form has fields name , description. when form submitted store these values json object in database. though when retrieve value database , try decode error if string value contains several lines:

{     "smtpmailaccountid":"7",     "isactive":"1",     "templateemailname":"cache topup alert email template ",     "systemserviceid":"2",     "body":"       {-topup_request_date-}       {-topup_response_date-}     " }  

when parse json give error.could not validate json

multiline not supported json grammar. other question can hep you: multiline strings in json


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -