I made entity
{ "contextElements": [ { "type": "T1", "isPattern": "false", "id": "E1", "attributes": [ { "name": "A", "type": "T", "value": [ "22" , { "x": [ "x1", "x2"], "y": "3" }, [ "z1", "z2" ] ] }, { "name": "B", "type": "T", "value": { "x": { "x1": "a", "x2": "b" }, "y": [ "y1", "y2" ] } } ] } ], "updateAction": "APPEND" }
Now I want to add values in an array, a string ("NEW VALUE") and a json object ({"NEW":"OBJECT"})
{ "contextElements": [ { "type": "T1", "isPattern": "false", "id": "E1", "attributes": [ { "name": "A", "type": "T", "value": [ "22" , { "x": [ "x1", "x2"], "y": "3" }, [ "z1", "z2" ] , "NEW VALUE", {"NEW":"OBJECT"} ] } ] } ], "updateAction": "UPDATE" }
Is possible to add new values as you would do this in array.push()?
Save the previous values and add only new ones after.