Method Standards.JSONPath.EmbeddedQuery()->apply()

class Standards.JSONPath.EmbeddedQuery

Method apply

string apply(mixed json_val, string|void separator)

Description

Apply the compiled template on a JSON value.

Parameter json_val

JSON-value to apply the template on.

Parameter separator

Separator in case of multiple values. Defaults to ", ".

Note

Values that are not strings are inserted as JSON values.

Returns

Returns the template applied on json_val.