Converting dictionary to a different JSON response

Hi,

How can I convert the below dictionary-

{
name:"Vivek",
place:"XYZ"
}
to something like this:
"{\"name\":\"Vivek\",\"place\":\"XYZ\"}"
It is a bit from what a!toJson function returns. Any lead will be helpful.
Thanks!

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data