Skip to main content
Takes a piece of structured data, such as an object or a list, and turns it into a single piece of text in the format you choose. Use this when a system you send data to expects one ready-made string instead of separate fields, for example a JSON body for an API, an XML document, or a YAML file. You pick the formatter, and this mapper hands your data to it and returns the formatted text. If you already know which format you need, the dedicated mappers (Format to JSON, Format to XML, and so on) are quicker to set up; reach for this one when you want to choose the formatter yourself or keep it configurable.

Fields

Sample data

This example uses the JSON formatter with pretty printing turned on, so the chosen object comes back as nicely indented JSON text.
FieldValue
FormatterJSON formatter, Pretty print enabled
Input:
{
    "product": {
        "sku": "SCARF-01",
        "name": "Wool scarf",
        "price": 24.95
    }
}
Output:
{
    "product": "{\n    \"sku\": \"SCARF-01\",\n    \"name\": \"Wool scarf\",\n    \"price\": 24.95\n}"
}