escapeJsonField := escape_json_field(Args{string: "..."})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Escaped String: " + escapeJsonField.escaped_string,
})
Inputs
StringRequired
String to escape.
Outputs
Escaped String
Escaped string safe for JSON fields.
Example: \"hello\"
Build a bot using blocks like Escape JSON Field
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:
escape_json_fieldInputs
| Field | InventScript name | Value |
|---|---|---|
| String | string |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Escaped String | escaped_string | e.g. "\\\"hello\\\"" |
Example InventScript
More network blocks
Parse JSONRetrieve a value from a JSON string.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.