Skip to main content
Serialize: JSON The Serialize: JSON mapper converts a data structure like objects and arrays into a JSON formatted string.

Fields

Options

Configure the JSON serialization output with one or more of the following options:
OptionDescription
Pretty printFormat the output with indentation and line breaks.
Unescape slashesDo not escape forward slashes in the output.

Sample data

InputOutput
{“name”: “Example”,“price”: 19.95}”{\“name\”:\“Example\”,\“price\“:19.95}”
{“invoiceId”: “#1234”,“totalAmount”: 300,“products”: [{“sku”: “ABC”,“price”: 100,“qty”: 1},{“sku”: “123”,“price”: 200,“qty”: 1}]}”{\“invoiceId\”:\“#1234\”,\“totalAmount\“:300,\“products\”:[{\“sku\”:\“ABC\”,\“price\“:100,\“qty\“:1},{\“sku\”:\“123\”,\“price\“:200,\“qty\“:1}]}”
[“A”, “B”, “C”]”[\“A\”,\“B\”,\“C\”]“

Pretty print

InputOutput
{“name”: “Example”,“price”: 19.95}”{\n \“name\”: \“Example\”,\n \“price\”: 19.95\n}“

Unescape slashes

InputOutput
{“url”: “https://example.com”\}”{\“url\”:\“https://www.example.org\\”\}