Parse JSON

BlockNetwork

Retrieve a value from a JSON string.

Inputs

JSON StringRequired

JSON string to parse.

Parse ValueRequired

Path to the value you want to parse (e.g. user[0].name or username).

Outputs

Value

Parsed value at the provided path.

Build a bot using blocks like Parse JSON

Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.

Advanced Documentation

This documentation can be useful when using code mode. View as Markdown

ID: parse_json

Inputs

FieldInventScript nameValue
JSON Stringjson_string
Parse Valueparse_value

Outputs

FieldInventScript nameValue
Valuevalue

Example InventScript

parseJson := parse_json(Args{json_string: "...", parse_value: "..."})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Value: " + parseJson.value,
})

More network blocks