Convert Graphql Query To Json