JsonIndexOf (Json Index Of Key Selector)

This component returns the index of a given key within a JSON object.
Figure 85.   JsonIdexOf properties
Image

You add this selector to a station by expanding Inbound > Selectors in the palette and dragging the JsonIndexOf to a message router in the Nav tree.

In addition to the standard property (Enabled), these properties support the JsonIndexOf.

Property Value Description
Last Result read-only Reports the results of the alarm acknowledgment to allow for logging or post-processing activity. Example output:

Unable to find messagge key:

Problem parsing messageType

Last Result Time read-only Reports when the handler ran last.
Last Input read-only Reports the last message routed to a component.
Status read-only Reflects the current status of the component.

Ok indicates the JSON processed successfully.

fault indicates the JSON did not process for any reason, such as invalid JSON or missing expected values in the JSON.

Out read-only Displays the result.
Key text (defaults to messageType) Defines which part of the incoming message to switch on)