There are examples in the jsonToolkit palette, which may help with learning how to construct a schema. You can simply drag the JsonExampleComponents and Schemas folders into a running station to work with them.

You construct a schema by placing “entities” from the jsonToolkit palette below a JsonSchema in the station and then use configuration properties and queries to get the output you want. Use the numbers in the screen capture to learn about schema elements:
Output property contains the resulting JSON payload (message or string).Enabled property turns the generation of output, execution of queries and subscription to bound values on and off. The Config folder contains properties that configure general schema attributes.Queries folder can contain query entities to insert bql, historical or alarm database content into a payload.{ } root object or an [ ] array contains JSON entities that structure the Output message. Some entities may be simple—for example braces { } represent a simple JSON object, while other entities represent
Generate action builds and updates schema output. For relative schemata, Generate evaluates the base query and publishes the results for each resolved base item.| Entity Type | Output |
|---|---|
| Object | “objectName” :{"name” : value, “name2” : value2….} |
| Array | “arrayName” :[value, value2….] |
| Property | “key”: value |
| Property List | “key”: value, “key2”: value2 |
All entities (minus Property) support nested child entities. This lets you build a schema using a tree structure with entities found in the jsonToolkit palette.
Every schema requires a root member that is allowed by the JSON standard: this means an object { } or an array [ ].

The screen capture shows how