I'm trying to pack 2 simple valid arrays of objects in an json object inside a Templater.
Happens that out of the templater my result seems to get interpreted as a string addin some strange characters \n {\n
May i be missing some json logic here ? thanks
array_1
c
{
"att1" : "DUT",
"att2" : null
}
]
array_2
t{
"att1" : "DUT",
"att2" : null
},
{
"att1" : "DUT",
"att2" : null
}]
Object packed at Templater with expression:
{
"array_1" : fme:get-attribute("array_1"),
"array_2" : fme:get-attribute("array_2")
}
Result
{ "array_1" : "a\n {\n \"att1\" : \"DUT\",\n \"att2\" : null\n }\n]", "array_2" : " d{\n \"att1\" : \"DUT\",\n \"att2\" : null\n },\n{\n \"att1\" : \"DUT\",\n \"att2\" : null\n }]\n" }