Script: JSON Set Key
Script:
- json_set_key.pf
Function:
Sets a key or keys to a value in a JSON array
Arguments:
- "json" (text)
- "key" (string - key to find separated by . (eg order.name or orders.*.sku where * indicates all))
- "value" (text - JSON value to assign to the above key or keys)
Returns:
- JSON object with altered keys
Try it out
GF Preview
The below is a mock representation of what the action should look like in GlobiFlow (with our Chrome Extension).
Capture Result of a Remote ProcFu Script
Header(s): |
***************************************
you@yourdomain.com
|
varname =
|
|
From URL: |
https://procfu.com/exe/json_set_key.pf
|
POST Params: |
json=[some token]&key=[some token]&value=[some token]
|
If you do not have our Chrome Extension, the step should look something like this (click on "Headers" to show value).
Capture Result of a Remote POST or GET
Header(s): | |
Follow Redirects: | |
varname =
|
|
From URL: | |
POST Params: |
json=[some token]&key=[some token]&value=[some token]
|