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

Input:
Output (a single text value; the line breaks and indentation are part of the text):
Written out, the JSON inside that text reads: