***Note from Migration:***
Original Title was: Change the behaviour of the fme:get-list-attribute("") function in a JSONTemplater, to always return an array (not just when the list contains more than 1 element)
I hope the title is already quite self explanatory.
Let me explain with an example.
Consider the following two lists;
Note that list_1 has a single element, and list_2 has two elements.
When I then use the following text in a JSON templater;
I obtain the following result;
{
"list_1" : "a",
"list_2" : [ "b", "c" ]
}
Whereas the following addition of square brackets in the JSONTemplater;
does produce the result I would consider to be the the desirable result from the 'fme_get-list-attribute("")' function.
{
"list_1" : [ "a" ],
"list_2" : [ "b", "c" ]
}