--- title: "JSON value projection" slug: "core-json-value-projection" updated: 2026-05-19T09:22:29Z published: 2026-05-19T09:22:29Z canonical: "docs.lobstersoftware.com/core-json-value-projection" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # JSON value projection *See also:* [Check JSONPath](/v1/docs/en/plugins-jsonpath) (Plugin) > [!NOTE] > Projection – Abstract > > **Purpose:** Used to retrieve values with a specific **Result type** from a data object defined in JSON format via a **JSON path** defined statically within the **Projection** using *JSONPath* syntax. > > > [!TIP] > > Tooltip > > > > - **Usage**: A **JSON path** (*JSONPath* expression) is applied on JSON data (or a JSON-string) provided by a **Projection** to extract a return value of the **Result type**. > > - **Parameter**: > > - **Name** optionally defines the title of an output column (if applicable). By default, the column name is the name of the configured **Projection**, prefixed with `json value of`. > > - A **Projection** is expected to be a *projection* that returns JSON data (e.g., from an [Any field](/v1/docs/en/custom-custom-any-field)) or text with the appropriate syntax. > > - The **JSON path**, defined by a static *JSONPath* expression, specifies how a return value should be derived from the data provided by the **Projection**. In the expression, `$` represents the return value as a whole. > > - The **Result type** (default: `String`) must be selected in accordance with the **JSON path**, taking into account the SQL/JSON syntax of the database system being used, in order to resolve the desired value. > > - **Note:** The value resolver is primarily designed to retrieve a single value, which, depending on the database system, may also be "extracted" from an *array*. An array present as a value in the data source can generally also be returned using the **Result type** "Object". Attempting to retrieve an *array* of individual values as a return value via the **JSON path**, however, is only successful in exceptional cases. ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-TJ2MUNEG.png) A [JSON value projection](/v1/docs/en/core-json-value-projection) is used to resolve values with a specific **Result type** from a data object defined in JSON format, using a **JSON path** defined statically within the **Projection** using *JSONPath* syntax. **IMPORTANT:** The specific functionality that [JSON value projection](/v1/docs/en/core-json-value-projection) can provide in any given case ultimately depends on the capabilities of the database system used for **Lobster Data Platform** and how the generic configuration is internally mapped to it. Primarily, [JSON value projection](/v1/docs/en/core-json-value-projection) is intended to enable access to a single value from the JSON data source. Whether, and under what conditions, the *JSONPath* expression can return an array of multiple values depends on the database system (and, if applicable, its version). ## Configuration | Parameter | Type | Description | | --- | --- | --- | | **Name** | `String` | The optional **Name** parameter can be used to assign an (alias) name to the projection. - If no **Name** is specified, the column name (if applicable) will be the name (or alias) of the configured **Projection** prefixed with `json value of`. | | **Projection** | *Entity* *(Projection)* | The **Projection** parameter defines the *data source* to which the **JSON path** should be applied to extract a value. The *data source* is supposed to be JSON data of varying complexity, which can be provided either as text (`String`) or in a JSON-specific property (e.g., the [Any field](/v1/docs/en/custom-custom-any-field) for [Custom type definitions](/v1/docs/en/custom-custom-type-definition)). --- **NOTE:** Typically, a [Property projection](/v1/docs/en/core-property-projection) is used to incorporate source data from the data structure of an entity persisted in the **Lobster Data Platform** into a query. However, a [Literal projection](/v1/docs/en/core-literal-projection) can also be useful for defining a static sample text as a *data source* when testing for the "appropriate" **JSON path**, or for supplying data via [Resolvers](/v1/docs/en/core-i-value-resolver) from (e.g. [Session based (Resolvers)](/v1/docs/en/orchestration-resolvers-session)) that is intended to be evaluated through the **JSON path**. | | **JSON path** | `String` | The **JSON Path** parameter contains static text defined in *JSONPath* syntax that specifies which information should be extracted from the return value of the **Projection**. The `$` symbol — typically placed at the beginning of the *JSONPath* expression — represents the return value of the **Projection***.* --- **IMPORTANT:** Whether a particular expression works ultimately depends on the database system on which the **Lobster Data Platform** server is running. In some cases, the full *JSONPath* syntax may not be available, or specific adjustments to the notation may be required. Whether a **JSON path** returns the expected value may also depend on the selected **Result type**, as this may determine the choice of JSON function used in the syntax for the database system in question. | | **Result type** | *Class (Data type)* | In the [Combobox](/v1/docs/en/fre-combo-box-vo) element for the **Result type**, you should select one of the following options based on the expected result of the *JSONPath* expression: - `String` (*Default*) for text values or other scalar values that should be interpreted as strings. - `Boolean` for truth values (`true` or `false`). - "Object" (`Object`) for all other types. | ## Example ### Simple use case: Determining the class of an embedded object Some entity types that are predefined by the **Lobster Data Platform** system have properties to which embedded objects of different classes can be assigned: The "API" entity type (`RestApiDefinition`), managed via the menu item [API Manager](/v1/docs/en/integration-modules-rest-api), contains an "API" (`api`) property that can hold either a configuration of the [REST API](/v1/docs/en/custom-rest-api-definition) or [MCP Server](/v1/docs/en/mcp-server) type. Since the system provides only a single consolidated overview for the "API" (`RestApiDefinition`) entity type, the [MCP Server](/v1/docs/en/mcp-server) configurations should be highlighted in this list using *line formatting*. The following screenshot shows the desired result in the [API Manager](/v1/docs/en/integration-modules-rest-api): ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-9VNB7K59.png) - In addition to being distinguished by an icon (see the **API** column), the [MCP Server](/v1/docs/en/mcp-server) configurations are displayed with a neon green background. Configuration: Specific *row formatting* can be defined in the client settings for a list (*Ribbon:* Settings/List/Edit) (for details, see [Row formatting in datagrids](/v1/docs/en/datagrid-row-formatter)). Whether or not a specific row format should be assigned to a list row is determined by the "condition", which must be defined as a *restriction* (see [Restrictions](/v1/docs/en/core-i-search-restriction)). The return value from a [Property projection](/v1/docs/en/core-property-projection) for the "API" (API) property cannot therefore simply be subjected to a [Check type](/v1/docs/en/core-check-type-rule) which would be intuitive and convenient in the context of a *rule* (see [Rules and values](/v1/docs/en/orchestration-rules-resolvers)). Since all specific details about the selected API class are stored as JSON data in the "API" property, you can – just as conveniently – evaluate the `class` field of the API object instead. ```json { "class": "de.lobster.scm.api.mcp.McpRestApi", "baseUri": "myFancyMcp", ... "tools": [ ... ] } ``` ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-VS4PY6OE.png) - On the left side of the [Field restriction](/v1/docs/en/core-property-search) shown above, the [JSON value projection](/v1/docs/en/core-json-value-projection) is used: - A [Property projection](/v1/docs/en/core-property-projection) on the **Property "**API" (`api`) serves as the **Projection**. - The **JSON path** `$.class` directly accesses the value of the `class` property of the data object in the return value of the **Projection** (`$`). - The **Result type** `String` is suitable here for the *fully qualified class name* as the *test value*. - On the right-hand side, the [Class](/v1/docs/en/core-class-value-editor) value resolver is used to set the class "MCP-Server" (`McpRestApi`) as a static *compare value*. **NOTE:** From the object of "Class" (`class`) type, the *fully qualified class name* is automatically used as a string representation for the comparison, which appears in parentheses in the label of the [Combobox](/v1/docs/en/fre-combo-box-vo) element. **NOTE:** The [JSON value projection](/v1/docs/en/core-json-value-projection) is also used by the system as the basis for the "API" column (`api`) of the "API" class (`RestApiDefinition`). This becomes clear, for example, when you set a filter for this column and then, while holding down the Shift key, click the *Ribbon button* "List/Search" to copy the [Tuple search](/v1/docs/en/core-tuple-search) behind the current overview to the clipboard: ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-0C2JBSAD.png) If the [Tuple search](/v1/docs/en/core-tuple-search) is then pasted from the clipboard into the [Search builder](/v1/docs/en/administration-system-search-builder) a corresponding [JSON value projection](/v1/docs/en/core-json-value-projection) named `api→class` appears in the condition there (as it does under [Projections](/v1/docs/en/core-i-search-projection)).