<aside>

Description

SimpleT JSON Parser converts JSON strings into key value pairs for use in Salesforce Flows. It supports selective extraction, error handling, and works with API responses, webhook data, and configuration files without requiring custom Apex code.

</aside>

Setup

Use these guides before adding the JSON Parser to your Flows:

What this tool does

Primary functions

When to use this tool

Understanding JSON and key-value pairs

What is JSON?

JSON (JavaScript Object Notation) is a format for storing and exchanging data. Example:

{
  "name": "John Smith",
  "age": 30,
  "email": "[email protected]",
  "active": true
}

What are key-value pairs?

The parser converts JSON into simple pairs where:

Input parameters explained

Required field

JSON String

Optional field

Keys to Extract

Benefits of selective extraction:

Understanding the results

Result structure

The parser returns a collection of key-value pairs.

parsedResults[0].invocableWrappers[0].key   = "name"
parsedResults[0].invocableWrappers[0].value = "John Smith"
parsedResults[0].invocableWrappers[1].key   = "age"
parsedResults[0].invocableWrappers[1].value = "30"

SimpleTJsonParser.png

Accessing results in Flow

Method 1: Loop through all results

Inside the Loop:

Method 2: Find specific values

Practical examples

Example 1: Processing an API response

Scenario: Get customer information from an external API.

Example 2: Processing webhook data

Scenario: Handle order updates from an e-commerce platform.

Example 3: Dynamic form processing

Scenario: Process form submissions with different fields.