parseJson := parse_json(Args{json_string: "...", parse_value: "..."})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Value: " + parseJson.value,
})
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_jsonInputs
| Field | InventScript name | Value |
|---|---|---|
| JSON String | json_string | |
| Parse Value | parse_value |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Value | value |
Example InventScript
More network blocks
Escape JSON FieldEscape a string to be used as a JSON field.Format JSONIndent a JSON string for readability.Generate Form BodyGenerate a HTTP form body from a list of key-value pairs.Network RequestSend an HTTP request and return the response.Respond to Incoming WebhookRespond to an incoming webhook request with a custom status code and response body.