With SetJSONArray() and SetJSONObject() this is not possible. They only change the JSON type, so that there is an empty array or empty object, respectively.
Please enhance SetJSONArray() and SetJSONObject() so that they accept an optional parameter that allows to assign an existing array or object, respectively.
Code: Select all
SetJSONArray(JSONValue [, array])
SetJSONObject(JSONValue [, object])
viewtopic.php?f=13&t=71020