NODE OPERATORS Overview Running a Chainlink Node Fulfilling Requests Run an Ethereum Client Performing System Maintenance Connecting to a Remote Database Configuration Variables Enabling HTTPS Connections Best Security and Operating Practices Best Practices for Nodes on AWS Miscellaneous
ORACLE JOBS Migrating to v2 Jobs Jobs Cron Direct Request Flux Monitor Keeper Off-chain Reporting Webhook Tasks HTTP Bridge JSON Parse CBOR Parse ETH ABI Decode ETH ABI Decode Log ETH ABI Encode ETH Call ETH Tx Multiply Divide Any Mean Median Mode Sum
JSON Parse Task
Tell us more about your experience.
JSON Parse tasks parse a JSON payload and extract a value at a given keypath.
Parameters
data
: the JSON string. Can be:- string
- byte array
path
: the keypath to extract. Must be a comma-delimited list of keys.lax
(optional): if false (or omitted), and the keypath doesn't exist, the task will error. If true, the task will returnnil
to the next task.
Outputs
The value at the provided keypath.
Example
my_json_task [type="jsonparse"
data="$(http_fetch_result)"
path="data,0,price"]
DOT (Graphviz)
Given the a data
value of
{
"data": [
{"price": 123.45},
{"price": 678.90},
]
}
...the above task will return 123.45
(float64).