JSON Path Search Field Expression Plugin
Section titled “ JSON Path Search Field Expression Plugin”The JSON Path plugin extracts Search Field values from a JSON Message Body of a Log Event with a single JSONPath expression. One expression can return a single property, every item in an array, or every property with a given name at any depth.
- ✅ Selects properties, array items, and wildcards with standard JSONPath
- ✅ Finds a property at any depth with recursive descent (
$..Id)

Animated walkthrough: pick the JSON Path type, enter $.orderId, apply it to the O2C.Order.Received/1.0 Message Type, and test it on a logged Order Received body; the Result shows ORD-10010.
When to use it
Section titled “ When to use it”| Your data | Use |
|---|---|
| JSON in the Message Body | JSON Path (this plugin) |
| JSON in a context property, or a value you need to transform or combine further | Formula with the jsonPath function |
| XML in the Message Body | XPath |
| JSON in the Message Body with a Base64-encoded part that holds JSON or XML | JSON Path Base64 Decode with JSON Path or JSON Path Base64 Decode with XPath (see Choose a plugin) |
| Text without a JSON or XML structure | RegEx |
For all plugins side by side, see Choose a plugin.
Expression syntax
Section titled “ Expression syntax”Select JSON Path in the Type list and enter the JSONPath in the Expression field.

The JSON Path plugin in the Type list; the filter also matches Formula and the two JSON Path Base64 Decode plugins.
| Syntax | Selects | Example |
|---|---|---|
$ |
The root of the JSON document | $.Order |
.Name |
A child property | $.Order.OrderNumber |
..Name |
Recursive descent: every property with that name, at any depth | $..Id |
[n] |
The array item at zero-based index n |
$.Order.Lines[0] |
[*] |
Wildcard: every item in an array, or every property of an object | $.Order.Lines[*].Sku |
- The leading
$.is optional:Order.Status,$.Order.Status, and.Order.Statusselect the same property. - Property names are case-sensitive:
order.statusfinds nothing in{"Order":{"Status":"Shipped"}}. A wrong case gives no value, not an error, so check the case first when a test finds nothing.
When the expression selects several values, the plugin returns each unique value once (see How expressions run). Configure the plugin in Add or manage Search Field and check the result with Test Your Expression. When the expression matches nothing, the test reports a warning instead of values; with an empty body, the warning also holds the JSON parser's error (Error reading JToken from JsonReader…):

The test result when the expression finds no value: Processed with warning: The Expression yields no result.
Examples
Section titled “ Examples”Example 1: Find every Id at any depth
Section titled “Example 1: Find every Id at any depth”{ "Orders": [ { "Id": 101 }, { "Id": 102 }]}Expression
Section titled “Expression”$..IdResult
Section titled “Result”101102Recursive descent (..) finds the Id property in both array items.

The expression $..Id returns 101 and 102.
Example 2: Extract every SKU from the order lines
Section titled “Example 2: Extract every SKU from the order lines”{ "Order": { "OrderNumber": "PO-2026-1001", "Customer": { "Id": "C-042", "Name": "ACME" }, "Lines": [ { "Sku": "WID-100", "Quantity": 5 }, { "Sku": "WID-200", "Quantity": 2 }, { "Sku": "WID-100", "Quantity": 1 } ] }}Expression
Section titled “Expression”$.Order.Lines[*].SkuResult
Section titled “Result”WID-100WID-200The wildcard [*] visits all three array items; WID-100 appears twice and is returned once.

Three order lines, two unique SKUs.
Example 3: Extract one property by its path
Section titled “Example 3: Extract one property by its path”The order from Example 2.
Expression
Section titled “Expression”$.Order.Customer.IdResult
Section titled “Result”C-042A full path from the root selects exactly this property, even when other objects in the message also have an Id; $..Id would return all of them.

The full path returns only the customer's Id.