Json

Json

This filter is used to extract information from a JSON doc received through the Message.
It is possible to use XPath query for JSON specifying a selector to search in the doc and extract data (it uses jsonquery).

Parameters

ParameterTypeDefaultDescription
targetSTRING“main”the field of the Message that should be used for the filter (it could be main or an extra field)
selectorSTRING""the selector to find the data in the JSON
... | json(selector="id", target="doc") | ...

Output

The filter will generate one or more Messages. It is possible to use more than 1 time this filter.
The field fulltext will contain the original target string.

Examples

What's on this Page