EXTRACTKEYSFROMOBJ

Metadata Instruction: Extract Information key's value from a JSON
Edited by: Shubhali Agarwal

Use Cases - When to use this command

Description

EXTRACTKEYSFROMOBJ is used to extract information such as the value of a key from a JSON object.

Guidelines for Usage:

How to use this command

EXTRACTKEYSFROMOBJ command is for node level operations. It can be used in any node as an instruction, except for the root node. It should not be used on the Arrows.

Let's take an example: EXTRACTKEYSFROMOBJ $result $resp['data']['city']
Here "$resp" is an API's JSON response which contains the key "data" that further contains "city" as a key.
"$result" will store the value corresponding to the key "city".

Examples

Simulated Metadata Editor
processing icon
Analytics API Call Body
Analytics API Response Body