Parse JSON
Retrieve a value from a JSON string.
WARNING
Network Requests require coding skills and falls outside the scope of our support.
This means we're unable to help further with setup or troubleshooting. Additionally, with a code-based solution, we can't guarantee its functionality or full compatibility with Inventor. This includes how it functions with our responsive design or future platform updates.
NOTE
Retrieving arrays/objects is not supported. You can currently only retrieve values (strings, floats, ints, bools, etc.) from objects.
Inputs
JSON String
JSON string to parse. This is usually the Response Body output from a Send Network Request block.
Example:
{
"greetings": ["hey there", "hello", "howdy"],
"farewell": "goodbye"
}
Parse Value
Path to the value you want to parse (e.g. user[0].name or username).
Example: greetings[0]
, farewell
TIP
You can use online tools like https://jsonpathfinder.com/ to find a path to whatever data you would like.
NOTE
To get the amout of items in a array, use length(greetings)
.
Outputs
Value
The retrieved value.
Example: hey there
, goodbye