Introduction
FME 2026.2 changed how JSON is written in a workspace. The JSON writer can now write nested objects and arrays. Two new transformers, the JSONObjectBuilder and the JSONAppender, build JSON from feature attributes without a template.
This page explains what changed and helps you choose between the new methods. For FME 2026.1 and earlier, and for other methods such as the FeatureWriter, the HTTPCaller, and the GeoJSON writer, see Writing JSON.
What Changed in FME 2026.2
Before FME 2026.2, the JSON writer wrote each feature as a flat object of key/value pairs, similar to a row in a CSV file. To write nested JSON, you had to build it with the JSONTemplater and write it with a Text File writer.
In FME 2026.2 and later, JSON is a full format with destination feature types and an attribute schema, like other FME formats.
The JSON writer reads the structure from the attribute names, and the new Nested Output writer parameter controls this behavior:
- A dot in an attribute name creates a nested object. For example, location.latitude is written as a latitude key inside a location object.
- Curly braces create an array. For example, artworks{}.title is written as an array named artworks that contains objects with a title key.
The JSONObjectBuilder builds a JSON object from feature attributes, or inserts attribute values into an existing JSON object. The JSONAppender adds JSON objects to an array inside a larger JSON document. Together, they cover many cases that previously needed the JSONTemplater (to build JSON) or the JSONUpdater (to add values to existing JSON).
Choose a Method
| Method | Common Scenario | Tutorial |
|---|---|---|
| JSON writer | Writing a JSON file where each feature becomes one object, including nested objects and arrays | Writing Nested JSON with the JSON Writer |
| JSONObjectBuilder and JSONAppender | Building JSON as an attribute value, assembling one document from many features, or adding values to existing JSON | Building JSON with the JSONObjectBuilder and JSONAppender |
| JSONTemplater and Text File writer | Complex templates that need XQuery logic or sub-templates, or workspaces that must run in FME 2026.1 or earlier | Writing JSON with the JSONTemplater |
Which Method Should I Use?
- Use the JSON writer when the output is a file, and the structure can be described with attribute names. It is the simplest option and needs no extra transformers.
- Use the JSONObjectBuilder when the JSON must be stored in an attribute. For example, use it to build a request body for the HTTPCaller or a value for a database field. Add the JSONAppender when you need to combine many features into one document. Use the JSONObjectBuilder in Insert into Existing JSON Object mode to add values to JSON that already exists, such as a web service response.
- Use the JSONTemplater when the JSON needs logic the other methods don't offer.
Additional Resources
- JSON (JavaScript Object Notation) Writer Parameters [FME Documentation]
- JSONObjectBuilder [FME Documentation]
- JSONAppender [FME Documentation]
- Reading JSON [Article]
- Transforming JSON Using the JSONExtractor, JSONFlattener, and JSONFragmenter [Article]
- FME 2026.2 - Feature Highlights [Article]