Good day,
I am using a JSON-Templater.
My Root Template looks like this:
{"GisData":
{"Lake" : :fme:process-features("LAKE")],
"River" : efme:process-features("RIVER")],
"Park : fme:process-features("PARK")]
}
}
and in the Sub Template I have one port for the Lake, one for the River and one for the Park.
In some cases I don’t have lakes for the JSON I want to create. So the JSON will look like this: "Lake": l], This is not useful and will create issues later on. How can I specify that I only want to add them to the JSON if they have a value ?