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
Post a Comment