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.