JSON <=> String conversion
String to JSON
Don't forget the quotes
Beautify
"{\"firstname\":\"john\",\"lastname\":\"doe\"}"
JSON to string
{"firstname":"john","lastname":"doe"}