I want to build a flat JSON array using the jsontemplater. I try to use this example to understand the syntax but using the pipe character does not go well.
Starting with a simple creator for the root object and sending the actual information to the ‘ADDRESSES’ sub template.

I try to define the root template as
[|
fme:process-features("ADDRESSES")
|]
and the sub template as
{
"ID": fme:get-attribute("Site_ID"),
"Address": fme:get-attribute("Address")
}
Taking it from the linked example the pipe character is needed to separate the array items by commas.
My translation log return the following warnings, and error message
JSONTemplater (XMLTemplaterFactory): The following error occurred near line 1, column 3 of the query:
JSONTemplater (XMLTemplaterFactory): invalid expression: syntax error, unexpected "|"
JSONTemplater (XMLTemplaterFactory): An error occurred while parsing the ROOT template
How do I use the jsontemplater to create some flat JSON array structured as
[
{
"ID": "Site_ID",
"Address": "Address"
},
{
"ID": "Site_ID",
"Address": "Address"
}
]