Sets a member within a JSON object or element within a JSON array to the given array of values. New in 2.1.1
Returns 1 if successful, 0 if not.
|Handle||Handle to a JSON Entity. Required.|
|Array||Array of values to be put into the JSON entity. Required.|
|Delim||The array's delimiter. Optional.|
The SetValueArray service sets a child within a given JSON Entity. This service only works on JSON objects and JSON arrays. If it is a JSON object, then Identifier needs to be a member name, such as "id" or "first-name". If it is a JSON array, then identifier needs to be an index, such as 1 or 10. Normally, to set an array at at given location, you have to create the array first and load all its values, like this:
This service does that work for you, simplifying the above code to this:
Delim indicates the delimiter used to separate values in Array, which defaults to @FM if omitted.The Delim parameter indicates the delimiter used to separate values in Array, which defaults to @FM if omitted.