function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
venkatsforcevenkatsforce 

Jsonstring

 

Hi

 

How to remove \n,\  from a string? 

"XYZ": "{\n \"Test\" : \"S\",\n \"SK\" : \"C\",\n \"DD\" : \"A\",\n \"AA\" : \"V\"\n}"

I am using json method to build the json request to post to the client server. But in json i am having the literals \n and \. This json request is not in the string format so i can not replace \n and \ with null value. How can i replace the \n and \ with null value (request should be in json format).

 

Thanks

Venkatsforce