MCPcopy Create free account
hub / github.com/go-json-experiment/json / Encode

Method Encode

v1/stream.go:136–161  ·  view source on GitHub ↗

Encode writes the JSON encoding of v to the stream, followed by a newline character. See the documentation for [Marshal] for details about the conversion of Go values to JSON.

(v any)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

BenchmarkCodeEncoderFunction · 0.95
BenchmarkEncodeMarshalerFunction · 0.95
TestEncoderFunction · 0.95
TestEncoderIndentFunction · 0.95
TestEncoderSetEscapeHTMLFunction · 0.95
bench_test.goFile · 0.80
FuzzCompareUTF16Function · 0.80
BenchmarkEncoderEncodeFunction · 0.80

Calls 6

GetBufferedEncoderMethod · 0.80
PutBufferedEncoderMethod · 0.80
EncoderMethod · 0.80
WriteMethod · 0.80
IndentFunction · 0.70
ResetMethod · 0.45

Tested by 10

BenchmarkCodeEncoderFunction · 0.76
BenchmarkEncodeMarshalerFunction · 0.76
TestEncoderFunction · 0.76
TestEncoderIndentFunction · 0.76
TestEncoderSetEscapeHTMLFunction · 0.76
FuzzCompareUTF16Function · 0.64
BenchmarkEncoderEncodeFunction · 0.64