I want to output a feature with a list (CITY) into a correct JSON array as described below. However, that does not work. Can somebody help me with it?
[
{
"CITY" : ["Frankfurt","Hamburg","Berlin"]
}
]
I want to output a feature with a list (CITY) into a correct JSON array as described below. However, that does not work. Can somebody help me with it?
[
{
"CITY" : ["Frankfurt","Hamburg","Berlin"]
}
]
Best answer by david_r
There's probably no need to use the JSONTemplater here, it comes with it's own set of challenges.
After the ListBuilder, insert a ListRenamer to make the list correspond to what the JSON writer expects:
This will rename city_list{}.CITY to just CITY{}
Result:
[{"CITY":["Frankfurt","Hamburg","Berlin"]}]
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.