Skip to main content
Turns your data into a JSON string. JSON is the most common format for sending data to web APIs, so reach for this whenever a request body, file, or message needs to be JSON text. By default the output is compact, with everything on one line; the options below let you make it more readable or leave forward slashes untouched.

Fields

Sample data

FieldValue
OptionsPretty print, Unescape slashes
Input:
{ "sku": "A1", "name": "Wool scarf", "url": "https://shop.test/p/a1" }
Output (a single text value; the line breaks and indentation are part of the text):
"{\n    \"sku\": \"A1\",\n    \"name\": \"Wool scarf\",\n    \"url\": \"https://shop.test/p/a1\"\n}"
Written out, the JSON inside that text reads:
{
    "sku": "A1",
    "name": "Wool scarf",
    "url": "https://shop.test/p/a1"
}