User Tools

Site Tools


action:Set_JSON_Value

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revision Both sides next revision
action:Set_JSON_Value [2019/06/24 02:06]
peternlewis created
action:Set_JSON_Value [2019/06/24 04:19]
peternlewis
Line 5: Line 5:
 {{ set-json-value.png?​nolink&​591x294 | Set JSON Value }} {{ set-json-value.png?​nolink&​591x294 | Set JSON Value }}
  
-The action will take a specified JSON path, referencing a location within a variable which contains a JSON object, and set the value.+The action will take a specified ​[[:​manual:​JSON#​JSON_Paths|JSON path]], referencing a location within a variable which contains a JSON object, and set the value.
  
 For example, with variable “J” containing `{ "​first"​ : "​John",​ "​last"​ : "​Smith"​ }`, the action can set the fist name field `J.first` (or `J{first}`) to a new name. For example, with variable “J” containing `{ "​first"​ : "​John",​ "​last"​ : "​Smith"​ }`, the action can set the fist name field `J.first` (or `J{first}`) to a new name.
Line 19: Line 19:
 * Process Nothing (process neither text tokens nor backslash characters) * Process Nothing (process neither text tokens nor backslash characters)
  
-You can select Pretty JSON result mode, which affects the format of the entire resulting variable value (See [[manual:​JSON]]).+You can select Pretty JSON result mode, which affects the format of the entire resulting variable value (See the [[manual:​JSON]] ​user manual section).
  
-You can select Strict JSON result mode, which affects how the value field is interpreted - in Strict mode, strings will need to be quoted with double quotes and appropriately escaped, but you can also then set numeric values and tru/​false/​null values. ​ In Non-Strict mode, the value is treated as a string and quoted and escaped as necessary (See [[manual:​JSON]]).+You can select Strict JSON result mode, which affects how the value field is interpreted - in Strict mode, strings will need to be quoted with double quotes and appropriately escaped, but you can also then set numeric values and tru/​false/​null values. ​ In Non-Strict mode, the value is treated as a string and quoted and escaped as necessary (See the [[manual:​JSON]] ​user manual section).
  
 ===== See Also ===== ===== See Also =====
Line 36: Line 36:
  
 * [[:Tokens |See all Tokens]] * [[:Tokens |See all Tokens]]
- 
action/Set_JSON_Value.txt · Last modified: 2023/09/15 04:19 by peternlewis