Skip to content

Parenting

Greg Wicks edited this page Mar 5, 2018 · 2 revisions

Parenting is defined by a specially marked JSON key, as shown below. The @parent key can be either an array of objects, or a single object.

Single Parent

In general, the values of the parent are overridden by the child, except when those values are declared as explicitly locked.

input.json

{
    "@parent": {
        "parent_only_key": "parent",
        "test": "parent_val"
    },
    "child_only_key": "value",
    "test": "child_val"
}

Output

{
    "parent_only_key": "parent",
    "child_only_key": "child",
    "test": "child_val"
}
Clone this wiki locally