A root content does not have any parent $ tests --parent "entity" < { > "content": [ > { > "id": "entity" > } > ] > } > EOF [No parent] A root content is the root of itself $ tests --parent --root "entity" < { > "content": [ > { > "id": "entity" > } > ] > } > EOF "entity" The parent of a subcontent shall never been None, and will target the container $ tests --parent "details" < { > "content": [ > { > "id": "entity", > "subcontent": [ > { > "id": "details" > } > ] > } > ] > } > EOF "entity" The parent element can be a subcontent itself $ tests --parent "level2" < { > "content": [ > { > "id": "entity", > "subcontent": [ > { > "id": "level1", > "subcontent": [ > { > "id": "level2" > } > ] > } > ] > } > ] > } > EOF "level1" The root element is the top content $ tests --parent --root "level2" < { > "content": [ > { > "id": "entity", > "subcontent": [ > { > "id": "level1", > "subcontent": [ > { > "id": "level2" > } > ] > } > ] > } > ] > } > EOF "entity"