Querying and manipulating JSON graphs