Add method for extracting JSON subgraph given an @id.