[addresses #64242732] Refining the json parsing.

Now handles cases where the json contains multiple nodes besides the main entity.