json
Parses JSON responses using simple queries.
Parses JSON responses using simple queries.
Property | Type | Description |
---|---|---|
delete | boolean | If this is set to true, the selected key will be deleted from the JSON and the modified JSON will be passed to the processor . |
format | enum | Conversion to apply on the matching parts with ’toVar’ or ’toArray’ shortcuts. Options:
|
processor | Processor.Builder | Add one or more processors. |
processor (alternative) | Processor.Builder | If neither delete or replace was set this processor will be called with the selected parts. In the other case the processor will be called with chunks of full (modified) JSON.Note that the |
query | String | Query selecting the part of JSON. |
replace | Transformer.Builder | Custom transformation executed on the value of the selected item. Note that the output value must contain quotes (if applicable) and be correctly escaped. |
replace (alternative) | String | Replace value of selected item with value generated through a pattern. Note that the result must contain quotes and be correctly escaped. |
toArray | String | Shortcut to store selected parts in an array in the session. Must follow the pattern variable[maxSize] |
toVar | String | Shortcut to store first match in given variable. Further matches are ignored. |
unquote | boolean | Automatically unquote and unescape the input values. By default true. |
replace
Custom transformation executed on the value of the selected item. Note that the output value must contain quotes (if applicable) and be correctly escaped.
Property | Type | Description |
---|---|---|
actions | ActionsTransformer.Builder | This transformer stores the (defragmented) input into a variable, using requested format. After that it executes all the actions and fetches transformed value using the pattern. |
pattern | Pattern.TransformerBuilder | Use pattern replacing session variables. |
replace.actions
This transformer stores the (defragmented) input into a variable, using requested format. After that it executes all the actions and fetches transformed value using the pattern.
Property | Type | Description |
---|---|---|
actions | Action.Builder | Actions to be executed. |
format | enum | Format into which should this transformer convert the buffers before storing. Default is STRING .Options:
|
pattern | String | Pattern to use when fetching the transformed value. |
var | String | Variable used as the intermediate storage for the data. |
replace.pattern
Use pattern replacing session variables.
Inline definition |
---|
The pattern formatting string. |
Property | Type | Description |
---|---|---|
pattern | String | Use pattern replacing session variables. |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.