[JSON Tool Kit] Is it possible to clear a JSON list and to add an entire list to an attribute?
json-tool-kit
Web icon
Forge component by Emidio Correia
Application Type
Traditional Web

Hello all,

I am using the component and I am trying to use some action that I don´'t know ifit supports.

Is it possible to remove all the positions of a list to make it empty?
Maybe something like this?

{

  'root': {

    'person': [ ]

  }


}

I already tried the Remove property but I could not achieve this part.

And the other question is, is it possible to add a list to a defined property like adding something like this:


[
{
"@id": "1",
"url": "http://www.google.com"
},
{
"@id": "2",
"name": "Louis",
"url": "http://www.yahoo.com"
}
    ]

To a property that is empty, like the 'person' in this case?


Thanks in advance,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.