---
url: https://gudhub.com/ru/docs/utils/json-constructor/scheme/
title: "Scheme\n                #"
description: "Scheme displayed the object scheme that is the representation of the final object structure. In this chapter we will talk about logic of the scheme building. Ro"
lang: uk
updated: 2026-09-12T23:32:53.723Z
---

# Scheme [#](https://gudhub.com/ru/docs/utils/json-constructor/scheme/#scheme)

Scheme displayed the object scheme that is the representation of the final object structure.

In this chapter we will talk about logic of the scheme building.

Roughly speaking, scheme is a set of different properties. Depends of the settings configured by user, entities with varied properties.

By default the scheme returns the empty array. And here is an example of the completed scheme:

Копировать

```json
{
    "type":"array",
    "id":1,
    "childs":[{
        "type":"property",
        "id":4,
        "property_name":"last_name",
        "property_type":"field_value",
        "field_id":"645887",
        "interpretation":1
        },
        {
        "type":"object",
        "id":2,
        "childs":[{
            "type":"property",
            "id":3,
            "property_name":"member","property_type":"field_value",
            "field_id":"645888",
            "interpretation":1
            },
            {
            "type":"property",
            "id":6,
            "property_name":"phone",
            "property_type":"field_value",
            "field_id":"645891",
            "interpretation":1
            },
            {
            "type":"property",
            "id":5,
            "property_name":"email",
            "property_type":"field_value",
            "field_id":"645882",
            "interpretation":1
            }],
        }],
    "property_name":"family",
    "app_id":"27823",
    "filter":[]
}
```

The JSON scheme has many different properties that relate to the main object or other properties.

The core set of the properties:

| Name | Type | Description |
| :-- | :-- | :-- |
| type | `string` | _shows type of the property_ |
| id | `number` | _shows the property ID_ |
| childs | `array` | _contains its entities_ |
| property\_name | `string` | _property name that is given by user_ |
| app\_id | `number` | _contains the ID of application where_ |

## type [#](https://gudhub.com/ru/docs/utils/json-constructor/scheme/#type)

In Scheme, all entities are the objects that have one of three types: array, object, property.

Копировать

```json
{
    "type": "array",
...}

{
    "type": "object",
...}

{
    "type": "property",
...}
```

These entities are same to ones in JSON. Every scheme consists of them.

## childs [#](https://gudhub.com/ru/docs/utils/json-constructor/scheme/#childs)

This array deserves special attention. It contains the objects that are located into current object or array. That means, if object has type "array" or "object", it necessarily will have **childs**. It has similar properties as the main one (type, id, property\_name, property\_type, childs). But, depends of their type and a few other attributes, they can have different properties.

### Array [#](https://gudhub.com/ru/docs/utils/json-constructor/scheme/#array)

Example array:

Копировать

```json
{
    "type":"array",
    "id":1,
    "childs":[],
    "property_name":"family",
    "app_id":"27823",
    "filter":[]
}
```

| Name | Type | Description |
| :-- | :-- | :-- |
| is\_static | `number` | s_hows is there filter or not (1 - true value, 0 - false value)_ |
| filter | `array` | _contains all the filters that are applied to the current object_ |

**is\_static** will be always shown after the first applying.

**Filter\`s** objects have their own properties:

Копировать

```json
{
    "filter":[{
        "field_id":645888,
        "data_type":"text",
        "valuesArray":["a"],
        "search_type":"not_contain_or",
        "selected_search_option_variable":"Value"
        }]
}
```

| Name | Type | Description |
| :-- | :-- | :-- |
| field\_id | `number` | _field ID in which the filter is located_ |
| data\_type | `string` | _type of searched data_ |
| valueArray | `array` | _values searching keys_ |
| search\_type | `string` | _type of the searching_ |
| selected\_search\_option\_variable | `string` | _contains one of three search options_ |

More details about all filter properties you can find in [Filter](https://gudhub.com/ru/docs/core-api/filter/filter-overview/).

### Object [#](https://gudhub.com/ru/docs/utils/json-constructor/scheme/#object)

Example object:

Копировать

```json
{
    "type":"object",
    "id":2,
    "childs":[]
}
```

| Name | Type | Description |
| :-- | :-- | :-- |
| current\_item | `number` | _allows to return the object instead of the array (1 - true value; 0 - false value)_ |

Objects contains the core set of properties and **current\_item**. But it has one peculiarity. Current\_item and app\_id will only appear after the current\_item gets true value for the first time.

### Property [#](https://gudhub.com/ru/docs/utils/json-constructor/scheme/#property)

Besides the core properties it has:

| Name | Type | Description |
| :-- | :-- | :-- |
| property\_type | `string` | _the type of the property_ |
| field\_id | `string` | _ID of the field from which the data will be taken_ |
| interpretation | `number` | _shows interpretation is applied or not (1 - true value, 0 - false value)_ |
| static\_field\_value | `string` | _contains the static value_ |
| variable\_type | `string` | _contains one of three variable types_ |

Example:

Копировать

```json
{
    "type":"property",
    "id":4,
    "property_name":"last_name",
    "property_type":"field_value",
    "field_id":"645887",
    "interpretation":1
}
```

Some of these properties depends of the property\_type value. More about them you can read in [Editor chapter](https://gudhub.com/ru/docs/utils/json-constructor/editor/).
