I have a list of nested items in the JSON object. I have to filter only root nodes (parent).
The below is the JSON object.
0: node: {__typename: "Item