MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / JSONBuiltin

Struct JSONBuiltin

runtime/marshal_json.go:15–15  ·  runtime/marshal_json.go::JSONBuiltin

JSONBuiltin is a Marshaler which marshals/unmarshals into/from JSON with the standard "encoding/json" package of Golang. Although it is generally faster for simple proto messages than JSONPb, it does not support advanced features of protobuf, e.g. map, oneof, .... The NewEncoder and NewDecoder type

Source from the content-addressed store, hash-verified

13// The NewEncoder and NewDecoder types return *json.Encoder and
14// *json.Decoder respectively.
15type JSONBuiltin struct{}
16
17// ContentType always Returns "application/json".
18func (*JSONBuiltin) ContentType(_ interface{}) string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected