MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / JSONDecoder

Function JSONDecoder

base/util_ce.go:52–54  ·  view source on GitHub ↗

JSONDecoder returns a new JSON decoder implementing the JSONDecoderI interface

(r io.Reader)

Source from the content-addressed store, hash-verified

50
51// JSONDecoder returns a new JSON decoder implementing the JSONDecoderI interface
52func JSONDecoder(r io.Reader) JSONDecoderI {
53 return json.NewDecoder(r)
54}
55
56// JSONEncoder returns a new JSON encoder implementing the JSONEncoderI interface
57func JSONEncoder(w io.Writer) JSONEncoderI {

Calls

no outgoing calls