...

Package jsonutil

import "github.com/shurcooL/graphql/internal/jsonutil"
Overview
Index

Overview ▾

Package jsonutil provides a function for decoding JSON into a GraphQL query data structure.

func UnmarshalGraphQL

func UnmarshalGraphQL(data []byte, v interface{}) error

UnmarshalGraphQL parses the JSON-encoded GraphQL response data and stores the result in the GraphQL query data structure pointed to by v.

The implementation is created on top of the JSON tokenizer available in "encoding/json".Decoder.