There is a number of step actions that only work on JSON, that is, the data presented in the current window must be JSON (and not JSON in the old legacy format where JSON has been translated into XML). These step actions may be found in the step action category called JSON in the Step Action Selector on the Action tab of the Step View. But the easiest way to select these is to use the context menu (right click menu) in the Windows View when the current window contains JSON. The image below shows an example of this:
There are two step action that extract from a JSON value:
Extract JSON. This step action always extract a JSON value, e.g. if the selection in the view is a property then it is the value of the property that is extracted. It is in many ways similar to the Extract step that extracts from HTML and XML, except that it is simpler because of the simpler data format, e.g. no distinction between markup and text.
Extract Property Name. This step action extract the name of a property.
There are two step action that loops over a JSON text:
Both of these step actions will for each iteration set a part of the JSON value in question as named JSON (similar to a named tag). When iteration over a variable this cannot be global, since changing the value of a variable during the iteration may change the value iterated over in such a way that iteration may fail, e.g. if an item is removed from the list iterated over.
There are four step action that modifies JSON (only if the JSON is in a variable):
Set JSON. This replaced the selected part of a JSON value with a new JSON value.
Set Property Name. This set the property name to a new name on a selected property.
Insert JSON. This inserts a new property in a JSON object or a new item (JSON value) in a JSON array. There are several option on where to insert the new property or item, e.g. first or last. Consult the reference documentation for the step action for a full list.
Remove JSON. This removes the selected part of a JSON value, e.g. a property from a JSON object or an item from a JSON array.
Finally, there are two more step action that work on JSON:
Test JSON. This step action test the "type" of a JSON value, e.g. whether it is an object, array, string, etc.
Set Named JSON. This step action is similar to its corresponding step action for other types of date, e.g. Set Named Tag and Set Named Range. It defines a named reference to a part of a JSON value so that it can be used as a reference when finding other parts of a JSON value in subsequent steps. Shown as blue boxes in the view.