Test JSON Type

This action tests the type of a JSON value. The types are: Object, Array, String, Integer, Float, Boolean and Null. Besides these types, it is also possible to test for two more general types: Simple and Number.

Properties

The Test JSON Type action is configured using the following properties:

Condition

This contains the condition that must hold:

Is Object

This is true if and only if the found JSON value is an object. This is a JSON value of the form {...}. It is not equivalent to the JavaScript type of operation which may also return object for an array as this is considered an object in JavaScript.

Is Array

This is true if and only if the found is an Array. This is a JSON value of the form [...].

Is Simple

This is true if and only if the found JSON value is a Simple type. A Simple type is any JSON value that is not an object or an array.

Is Integer

This is true if and only if the found JSON value is a Integer. This type is an arbitrary-precision integer, but be you should be careful whenever you convert a JSON integer value to some other representation of integers, e.g. in a integer variable, that this may result in overflow.

Is Float

This is true if and only if the found JSON value is a Float. This type is an arbitrary-precision number that is not an integer, e.g. 23.345E-42, but be you should be careful whenever you convert a JSON float value to some other number representation, e.g. in a number variable, that this may result in overflow.

Is Number

This is true if and only if the found JSON value is an Integer or a Float.

Is String

This is true if and only if the found JSON value is a String. A string must begin and end with a quotation marks ("), and various characters must be escaped with backslash (\), e.g. ", \, /, b, f, n, r, t, uXXXX, and so on.

Is Boolean

This is true if and only if the found JSON value is a Boolean. That is, oner of the two value true or false.

Is Null

This is true if and only if the found JSON value is the value null.

Note These condition are not mutually exclusive, such as "Is Number" and "Is Integer" are both true for integer values
If

Specifies the exact condition to test for, and thus enables inversion of the stated condition. The default is to test if the "Condition is Not Satisfied". If this is selected and the condition evaluates to false, execution will be affected as indicated by the Do property; however if the condition evaluates to true, execution will continue down the current branch. It is possible instead to test if the "Condition is Satisfied", which reverses the outcome.

Do

Determines what happens when the condition and the If property together indicate that execution should not continue down the current branch.

As Specified Under Error Handling

The Error Handling tab specifies in detail what to do.

Skip Following Steps

Execution down the current branch will stop.