Hi everyone,
I’m working with the JSONUpdater transformer in FME and need to add a key called layerDefinition to my JSON. The goal is to have:
"layerDefinition": {}
as an actual empty object, not:
"layerDefinition": "{}" // string
or
"layerDefinition": null
Here’s what I tried:
- Value Type = Plain Text, Value =
{}→ Result is"{}"(string). - Value Type = JSON/XQuery, Value =
{}→ Result isnull. - Value Type = JSON/XQuery, Value =
json:object()ormap {}→ The key doesn’t appear at all in the output.
My JSON path is correct (json["operationalLayers"][0]), and the update type is Insert into Object.
Question:
Is there a way in FME to insert an empty JSON object using JSONUpdater without resorting to a string or null? Or is the only workaround to use AttributeCreator + JSONFragmenter or JSONTemplater?
Any advice or examples would be greatly appreciated!




