MCPcopy Create free account

hub / github.com/go-json-experiment/json / functions

Functions1,017 in github.com/go-json-experiment/json

MethodMarshalJSON
()
v1/decode_test.go:300
MethodMarshalJSON
()
v1/decode_test.go:318
MethodMarshalJSON
()
v1/decode_test.go:356
MethodMarshalJSON
()
v1/decode_test.go:374
MethodMarshalJSON
()
v1/encode_test.go:456
MethodMarshalJSON
()
v1/encode_test.go:468
MethodMarshalJSON
()
v1/encode_test.go:524
MethodMarshalJSON
()
v1/encode_test.go:759
MethodMarshalJSON
()
v1/encode_test.go:1029
MethodMarshalJSON
()
v1/encode_test.go:1037
MethodMarshalJSON
()
v1/encode_test.go:1332
MethodMarshalJSON
()
v1/encode_test.go:1390
MethodMarshalJSON
MarshalJSON always returns a JSON string with the literal "CALLED".
v1/diff_test.go:571
MethodMarshalJSON
()
v1/example_marshaling_test.go:42
MethodMarshalJSON
()
v1/stream_test.go:142
MethodMarshalJSON
()
v1/stream_test.go:148
MethodMarshalJSON
MarshalJSON returns v as the JSON encoding of v. It returns the stored value as the raw JSON output without any validation. If v is nil, then this ret
jsontext/value.go:238
MethodMarshalJSONTo
(enc *jsontext.Encoder)
arshal_test.go:610
MethodMarshalJSONTo
(enc *jsontext.Encoder)
arshal_test.go:646
MethodMarshalJSONTo
(enc *jsontext.Encoder)
arshal_test.go:655
MethodMarshalJSONTo
(enc *jsontext.Encoder)
arshal_test.go:690
MethodMarshalJSONTo
MarshalJSONTo encodes obj as a JSON object into enc.
example_orderedobject_test.go:34
MethodMarshalJSONTo
(enc *jsontext.Encoder)
bench_test.go:309
MethodMarshalJSONTo
MarshalJSONTo implements [jsonv2.MarshalerTo].
v1/decode.go:212
MethodMarshalText
()
arshal_test.go:607
MethodMarshalText
()
arshal_test.go:622
MethodMarshalText
()
arshal_test.go:682
MethodMarshalText
()
arshal_test.go:699
MethodMarshalText
()
arshal_test.go:712
MethodMarshalText
()
bench_test.go:285
MethodMarshalText
needed for re-marshaling tests
v1/decode_test.go:129
MethodMarshalText
()
v1/decode_test.go:328
MethodMarshalText
()
v1/decode_test.go:346
MethodMarshalText
()
v1/decode_test.go:384
MethodMarshalText
()
v1/decode_test.go:402
MethodMarshalText
()
v1/encode_test.go:475
MethodMarshalText
()
v1/encode_test.go:487
MethodMarshalText
()
v1/encode_test.go:771
MethodMarshalText
()
v1/encode_test.go:1033
MethodMarshalText
()
v1/encode_test.go:1041
MethodMarshalText
()
v1/encode_test.go:1051
MethodMarshalText
()
v1/example_text_marshaling_test.go:37
FunctionMarshalWrite
MarshalWrite serializes a Go value into an [io.Writer] according to the provided marshal and encode options (while ignoring unmarshal or decode option
arshal.go:181
FunctionMatchCaseInsensitiveNames
MatchCaseInsensitiveNames specifies that JSON object members are matched against Go struct fields using a case-insensitive match of the name. If a nam
options.go:211
FunctionMatchCaseSensitiveDelimiter
MatchCaseSensitiveDelimiter specifies that underscores and dashes are not to be ignored when performing case-insensitive name matching which occurs un
v1/alias.go:658
FunctionMatchCaseSensitiveDelimiter
MatchCaseSensitiveDelimiter specifies that underscores and dashes are not to be ignored when performing case-insensitive name matching which occurs un
v1/options.go:341
FunctionMergeWithLegacySemantics
MergeWithLegacySemantics specifies that unmarshaling into a non-zero Go value follows legacy semantics: - When unmarshaling a JSON null, this preserv
v1/alias.go:685
FunctionMergeWithLegacySemantics
MergeWithLegacySemantics specifies that unmarshaling into a non-zero Go value follows legacy semantics: - When unmarshaling a JSON null, this preserv
v1/options.go:372
FunctionMultiline
Multiline specifies that the JSON output should expand to multiple lines, where every JSON object member or JSON array element appears on a new, inden
jsontext/options.go:213
FunctionNewDecoder
NewDecoder returns a new decoder that reads from r. The decoder introduces its own buffering and may read data from r beyond the JSON values requeste
v1/stream.go:38
FunctionNewDecoder
NewDecoder constructs a new streaming decoder reading from r. If r is a [bytes.Buffer], then the decoder parses directly from the buffer without firs
jsontext/decode.go:122
FunctionNewEncoder
NewEncoder returns a new encoder that writes to w.
v1/stream.go:124
FunctionNewEncoder
NewEncoder constructs a new streaming encoder writing to w configured with the provided options. It flushes the internal buffer when the buffer is suf
jsontext/encode.go:91
FunctionOmitEmptyWithLegacySemantics
OmitEmptyWithLegacySemantics specifies that the `omitempty` tag option follows a definition of empty where a field is omitted if the Go value is false
v1/alias.go:703
FunctionOmitEmptyWithLegacySemantics
OmitEmptyWithLegacySemantics specifies that the `omitempty` tag option follows a definition of empty where a field is omitted if the Go value is false
v1/options.go:394
FunctionOmitZeroStructFields
OmitZeroStructFields specifies that a Go struct should marshal in such a way that all struct fields that are zero are omitted from the marshaled outpu
options.go:182
MethodOptions
Options returns the options used to construct the encoder and may additionally contain semantic options passed to a [encoding/json/v2.MarshalEncode] c
jsontext/encode.go:140
MethodOptions
Options returns the options used to construct the decoder and may additionally contain semantic options passed to a [encoding/json/v2.UnmarshalDecode]
jsontext/decode.go:165
FunctionParseBytesWithLooseRFC4648
ParseBytesWithLooseRFC4648 specifies that when parsing binary data encoded as "base32" or "base64", to ignore the presence of '\r' and '\n' characters
v1/alias.go:716
FunctionParseBytesWithLooseRFC4648
ParseBytesWithLooseRFC4648 specifies that when parsing binary data encoded as "base32" or "base64", to ignore the presence of '\r' and '\n' characters
v1/options.go:411
FunctionParseTimeWithLooseRFC3339
ParseTimeWithLooseRFC3339 specifies that a [time.Time] parses according to loose adherence to RFC 3339. In particular, it permits historically incorre
v1/alias.go:729
FunctionParseTimeWithLooseRFC3339
ParseTimeWithLooseRFC3339 specifies that a [time.Time] parses according to loose adherence to RFC 3339. In particular, it permits historically incorre
v1/options.go:428
FunctionPreserveRawStrings
PreserveRawStrings specifies that when encoding a raw JSON string in a [Token] or [Value], pre-escaped sequences in a JSON string are preserved to the
jsontext/options.go:111
MethodProtoReflect
()
example_test.go:370
MethodReadByte
ReadByte implements [io.ByteReader].
internal/zstd/zstd.go:135
FunctionRejectUnknownMembers
RejectUnknownMembers specifies that unknown members should be rejected when unmarshaling a JSON object. This only affects unmarshaling and is ignored
options.go:223
FunctionReorderRawObjects
ReorderRawObjects specifies that when encoding a raw JSON object in a [Value], the object members are reordered according to RFC 8785, section 3.2.3.
jsontext/options.go:166
FunctionReportErrorsWithLegacySemantics
ReportErrorsWithLegacySemantics specifies that Marshal and Unmarshal should report errors with legacy semantics: - When marshaling or unmarshaling, t
v1/options.go:485
MethodSkipValue
()
jsontext/decode.go:416
FunctionSpaceAfterColon
SpaceAfterColon specifies that the JSON output should emit a space character after each colon separator following a JSON object name. If false, then n
jsontext/options.go:179
FunctionSpaceAfterComma
SpaceAfterComma specifies that the JSON output should emit a space character after each comma separator following a JSON object value or array element
jsontext/options.go:192
MethodString
()
arshal_test.go:735
MethodString
()
internal/jsontest/testcase.go:33
FunctionStringifyNumbers
StringifyNumbers specifies that types that would normally be encoded as a JSON number to instead be encoded as a JSON string containing the equivalent
options.go:126
FunctionStringifyWithLegacySemantics
StringifyWithLegacySemantics specifies that the `string` tag option may stringify bools and string values. It only takes effect on fields where the to
v1/alias.go:809
FunctionStringifyWithLegacySemantics
StringifyWithLegacySemantics specifies that the `string` tag option may stringify bools and string values. It only takes effect on fields where the to
v1/options.go:516
FunctionTestAnonymousFields
(t *testing.T)
v1/encode_test.go:557
FunctionTestAppendNumber
(t *testing.T)
internal/jsonwire/encode_test.go:86
FunctionTestAppendQuote
(t *testing.T)
internal/jsonwire/encode_test.go:28
FunctionTestArrays
In v1, unmarshaling into a Go array permits JSON arrays with any length. In v2, unmarshaling into a Go array requires that the JSON array have the exa
v1/diff_test.go:493
FunctionTestBenchmarkMarshal
(t *testing.T)
bench_test.go:354
FunctionTestBenchmarkSlowStreamingDecode
(t *testing.T)
bench_test.go:557
FunctionTestBenchmarkTestdata
(t *testing.T)
bench_test.go:398
FunctionTestBenchmarkTextValue
(t *testing.T)
bench_test.go:588
FunctionTestBenchmarkUnmarshal
(t *testing.T)
bench_test.go:320
FunctionTestBenchmarkUnmarshalUnknown
TestBenchmarkUnmarshalUnknown unmarshals an unknown field into a struct with varying number of fields. Since the unknown field does not directly match
fold_test.go:106
FunctionTestBlocking
(t *testing.T)
v1/stream_test.go:340
FunctionTestBlockingDecoder
TestBlockingDecoder verifies that JSON values except numbers can be synchronously sent and received on a blocking pipe without a deadlock. Numbers are
jsontext/decode_test.go:1115
FunctionTestBufferDecoder
TestBufferDecoder tests that we detect misuses of bytes.Buffer with Decoder.
jsontext/decode_test.go:1046
FunctionTestByteArrays
In v1, byte arrays are treated as arrays of unsigned integers. In v2, byte arrays are treated as binary values (similar to []byte). This is to make th
v1/diff_test.go:531
FunctionTestByteKind
Custom types with []byte as underlying type could not be marshaled and then unmarshaled. Issue 8962.
v1/decode_test.go:2328
FunctionTestCanonicalNumber
TestCanonicalNumber verifies that appendNumber complies with RFC 8785 according to the testdata provided by the reference implementation. See https://
internal/jsonwire/encode_test.go:171
FunctionTestCaseSensitivity
In v1, unmarshal matches struct fields using a case-insensitive match. In v2, unmarshal matches struct fields using a case-sensitive match. Case-inse
v1/diff_test.go:51
FunctionTestCoderInterleaved
TestCoderInterleaved tests that we can interleave calls that operate on tokens and raw values. The only error condition is trying to operate on a raw
jsontext/coder_test.go:444
FunctionTestCoderMaxDepth
(t *testing.T)
jsontext/coder_test.go:605
FunctionTestCoderStackPointer
(t *testing.T)
jsontext/coder_test.go:515
FunctionTestCompactAndIndent
(t *testing.T)
v1/scanner_test.go:53
FunctionTestCompactBig
Tests of a large random structure.
v1/scanner_test.go:137
FunctionTestCompactSeparators
(t *testing.T)
v1/scanner_test.go:113
FunctionTestCompareUTF16
(t *testing.T)
internal/jsonwire/wire_test.go:38
← previousnext →701–800 of 1,017, ranked by callers