JSONtoXML
First the JSON passed as source needs always a root element (in the below example there's a 'root' property, could be with any other name):
XMLtoJSON
This action converts a XML string to JSON.
SelectToken
This action returns the selected token.
SelectTokens
This action returns the selected tokens.
AddProperty
This action load a JSON, and then you can add a property, returning the new JSON with the new property included.
If IsJSONValue is true, the PropertyValueToAdd it is considered as a JSON string.
If IsJSONArray is true and IsJSONValue is false, the PropertyValueToAdd it is considered as a JSON array string.
If IsJSONValue and IsJSONArray are both false, the PropertyItemToAddToArray is considered as single string.
AddArrayItem
This action load a JSON, and then you can add a array item, returning the new JSON with the new array item.
If IsJSONValue is true, the PropertyItemToAddToArray is considered as a JSON string. Otherwise, it is considered as single string.
PropertyValueToUpper
Transforms a property value to upper case.
RemoveProperty
This action load a JSON, and then you can remove a property, returning the new JSON without that property.
More info about, and how to use it:
- https://www.newtonsoft.com/json/help/html/ModifyJson.htm
- https://www.newtonsoft.com/json/help/html/QueryJson.htm
"{ 'root': { 'person': [ { '@id': '1', 'name': 'Alan', 'url': 'http://www.google.com' }, { '@id': '2', 'name': 'Louis', 'url': 'http://www.yahoo.com' } ] } }"
a) JSON source input parameter:
"{ 'root': { 'title': 'Star Wars', 'link': 'http://www.starwars.com', 'description': 'Star Wars blog.', 'obsolete': 'Obsolete value', 'item': [] } }"
b) The other inputs parameters:
c) The result: