Login to follow
JsonToolkit

JsonToolkit (ODC)

Stable version 2.3.0 (Compatible with ODC)
Uploaded on 01 October 2024 by Version 1 Technology Limited
JsonToolkit

JsonToolkit (ODC)

Documentation
2.3.0

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):


Result



XMLtoJSON

This action converts a XML string to JSON.


Result



SelectToken


This action returns the selected token.



Result



SelectTokens


This action returns the selected tokens.


Result



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.



If the new property is a JSON array



If the new property is JSON string


If the property is a text literal



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.


If the new property is JSON string


If the property is a text literal



PropertyValueToUpper

Transforms a property value to upper case.


Result



RemoveProperty

This action load a JSON, and then you can remove a property, returning the new JSON without that property.


Result



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