Create a JSON

Creates an empty JSON object.

Overview

This procedure creates an empty JSON object (represented as {}). This is useful as a starting point for building up a JSON structure by adding fields one at a time. The empty JSON object can then be assigned to a fact and populated with data.

Input

This procedure has no input concepts.

Output

Concept
Description

json

An empty JSON object {}

Examples

1. Creating a simple empty JSON

This example creates an empty JSON object {}.

create a json

2. Creating and using an empty JSON

This example creates an empty JSON object and assigns it to a fact called "request".

3. Creating and populating a JSON object

This example creates an empty JSON and then populates it with three fields: name, age, and company.

4. Creating multiple JSON objects

This example creates another empty JSON object with a different fact name and populates it with company and address fields.

5. Creating JSON for nested structures

This example creates multiple JSON objects and nests one within another. The result would be: {"data": {"age": "23"}}

6. Creating JSON for use with merge operations

This example creates an empty JSON object that will be used to merge or combine data from other sources.

Last updated

Was this helpful?