MCPcopy Create free account

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

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

FunctionTestSkipArrayObjects
Test that extra object elements in an array do not result in a "data changing underfoot" error. Issue 3717
v1/decode_test.go:2495
FunctionTestSliceNoCycle
(t *testing.T)
v1/encode_test.go:404
FunctionTestSliceOfCustomByte
The fix for issue 8962 introduced a regression. Issue 12921.
v1/decode_test.go:2347
FunctionTestStateMachine
(t *testing.T)
jsontext/state_test.go:73
FunctionTestStringKind
(t *testing.T)
v1/decode_test.go:2308
FunctionTestStringOption
In v1, the "string" option specifies that Go strings, bools, and numeric values are encoded within a JSON string when marshaling and are unmarshaled f
v1/diff_test.go:295
FunctionTestStructTagObjectKey
(t *testing.T)
v1/tagkey_test.go:75
FunctionTestSynctestMarshal
Issue #73733: encoding/json used a WaitGroup to coordinate access to cache entries. Since WaitGroup.Wait is durably blocking, this caused apparent dea
v1/encode_test.go:1417
FunctionTestTaggedFieldDominates
Test that a field with a tag dominates untagged fields.
v1/encode_test.go:852
FunctionTestTextMarshalerMapKeysAreSorted
(t *testing.T)
v1/encode_test.go:1088
FunctionTestTimeDurations
In v1, there was no special support for time.Duration, which resulted in that type simply being treated as a signed integer. In v2, there is now first
v1/diff_test.go:1006
FunctionTestTokenAccessors
(t *testing.T)
jsontext/token_test.go:36
FunctionTestTokenClone
(t *testing.T)
jsontext/token_test.go:206
FunctionTestTokenError
(t *testing.T)
v1/stream_test.go:519
FunctionTestTokenStringAllocations
(t *testing.T)
jsontext/token_test.go:17
FunctionTestTruncatePointer
(t *testing.T)
internal/jsonwire/wire_test.go:76
FunctionTestUnmarshal
(t *testing.T)
arshal_test.go:4676
FunctionTestUnmarshal
(t *testing.T)
v1/decode_test.go:1446
FunctionTestUnmarshalEmbeddedUnexported
Test unmarshal behavior with regards to embedded unexported structs. (Issue 21357) If the embedded struct is a pointer and is unallocated, this retur
v1/decode_test.go:2621
FunctionTestUnmarshalErrorAfterMultipleJSON
(t *testing.T)
v1/decode_test.go:2767
FunctionTestUnmarshalInterface
(t *testing.T)
v1/decode_test.go:1607
FunctionTestUnmarshalJSONLiteralError
(t *testing.T)
v1/decode_test.go:2482
FunctionTestUnmarshalMapWithTextUnmarshalerStringKey
Test unmarshal to a map, where the map key is a user defined type. See golang.org/issues/34437.
v1/decode_test.go:2831
FunctionTestUnmarshalMarshal
(t *testing.T)
v1/decode_test.go:1533
FunctionTestUnmarshalMaxDepth
(t *testing.T)
v1/decode_test.go:2887
FunctionTestUnmarshalNulls
JSON null values should be ignored for primitives and string values instead of resulting in an error. Issue 2540
v1/decode_test.go:2173
FunctionTestUnmarshalPanic
(t *testing.T)
v1/decode_test.go:2812
FunctionTestUnmarshalPtrPtr
(t *testing.T)
v1/decode_test.go:1618
FunctionTestUnmarshalRescanLiteralMangledUnquote
(t *testing.T)
v1/decode_test.go:2842
FunctionTestUnmarshalSyntax
(t *testing.T)
v1/decode_test.go:2416
FunctionTestUnmarshalTypeError
(t *testing.T)
v1/decode_test.go:2364
FunctionTestUnmarshalTypeErrorMessage
(t *testing.T)
v1/decode_test.go:2388
FunctionTestUnmarshalUnexported
(t *testing.T)
v1/decode_test.go:2452
FunctionTestUnsupportedValues
(t *testing.T)
v1/encode_test.go:410
FunctionTestValid
(t *testing.T)
v1/scanner_test.go:31
FunctionTestValueMethods
(t *testing.T)
jsontext/value_test.go:147
FunctionUint
Uint constructs a Token representing a JSON number from a uint64.
jsontext/token.go:198
FunctionUnmarshal
Unmarshal decodes a []byte input into a Go value according to the provided unmarshal and decode options (while ignoring marshal or encode options). Th
arshal.go:390
FunctionUnmarshal
Unmarshal parses the JSON-encoded data and stores the result in the value pointed to by v. If v is nil or not a pointer, Unmarshal returns an [Invalid
v1/decode.go:110
FunctionUnmarshalArrayFromAnyLength
UnmarshalArrayFromAnyLength specifies that Go arrays can be unmarshaled from input JSON arrays of any length. If the JSON array is too short, then the
v1/alias.go:822
FunctionUnmarshalArrayFromAnyLength
UnmarshalArrayFromAnyLength specifies that Go arrays can be unmarshaled from input JSON arrays of any length. If the JSON array is too short, then the
v1/options.go:533
FunctionUnmarshalDecode
UnmarshalDecode deserializes a Go value from a [jsontext.Decoder] according to the provided unmarshal or decode options (while ignoring marshal or enc
arshal.go:430
MethodUnmarshalJSON
(val []byte)
arshal_test.go:635
MethodUnmarshalJSON
(b []byte)
arshal_test.go:673
MethodUnmarshalJSON
(b []byte)
arshal_test.go:705
MethodUnmarshalJSON
(b []byte)
bench_test.go:300
MethodUnmarshalJSON
(b []byte)
internal/jsontest/testdata.go:608
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:68
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:74
MethodUnmarshalJSON
(b []byte)
v1/decode_test.go:115
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:304
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:322
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:360
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:378
MethodUnmarshalJSON
(data []byte)
v1/decode_test.go:2298
MethodUnmarshalJSON
(b []byte)
v1/decode_test.go:2470
MethodUnmarshalJSON
([]byte)
v1/decode_test.go:2810
MethodUnmarshalJSON
([]byte)
v1/encode_test.go:460
MethodUnmarshalJSON
UnmarshalJSON always stores a string with the literal "CALLED".
v1/diff_test.go:576
MethodUnmarshalJSON
(b []byte)
v1/example_marshaling_test.go:25
MethodUnmarshalJSON
UnmarshalJSON sets v as the JSON encoding of b. It stores a copy of the provided raw JSON input without any validation.
jsontext/value.go:248
MethodUnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:629
MethodUnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:650
MethodUnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:658
MethodUnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:702
MethodUnmarshalJSONFrom
UnmarshalJSONFrom decodes a JSON object from dec into obj.
example_orderedobject_test.go:54
MethodUnmarshalJSONFrom
(dec *jsontext.Decoder)
bench_test.go:312
MethodUnmarshalJSONFrom
UnmarshalJSONFrom implements [jsonv2.UnmarshalerFrom].
v1/decode.go:237
FunctionUnmarshalRead
UnmarshalRead deserializes a Go value from an [io.Reader] according to the provided unmarshal and decode options (while ignoring marshal or encode opt
arshal.go:408
MethodUnmarshalText
(b []byte)
arshal_test.go:685
MethodUnmarshalText
(b []byte)
arshal_test.go:708
MethodUnmarshalText
(b []byte)
arshal_test.go:715
MethodUnmarshalText
(b []byte)
bench_test.go:288
MethodUnmarshalText
(b []byte)
v1/decode_test.go:133
MethodUnmarshalText
(data []byte)
v1/decode_test.go:332
MethodUnmarshalText
(data []byte)
v1/decode_test.go:350
MethodUnmarshalText
(data []byte)
v1/decode_test.go:388
MethodUnmarshalText
(data []byte)
v1/decode_test.go:406
MethodUnmarshalText
(text []byte)
v1/decode_test.go:2304
MethodUnmarshalText
(text []byte)
v1/decode_test.go:2824
MethodUnmarshalText
([]byte)
v1/encode_test.go:479
MethodUnmarshalText
(text []byte)
v1/example_text_marshaling_test.go:25
MethodUnwrap
()
internal/zstd/zstd.go:481
MethodUnwrap
()
v1/decode.go:158
MethodUnwrap
()
jsontext/errors.go:42
MethodUnwrap
()
jsontext/errors.go:143
FunctionValid
Valid reports whether data is a valid JSON encoding.
v1/scanner.go:23
MethodVisit
(node ast.Node)
alias_gen.go:300
FunctionWithIndent
WithIndent specifies that the encoder should emit multiline output where each element in a JSON object or array begins on a new, indented line beginni
jsontext/options.go:232
FunctionWithIndentPrefix
WithIndentPrefix specifies that the encoder should emit multiline output where each element in a JSON object or array begins on a new, indented line b
jsontext/options.go:265
FunctionWithMarshalers
WithMarshalers specifies a list of type-specific marshalers to use, which can be used to override the default marshal behavior for values of particula
options.go:236
FunctionWithUnmarshalers
WithUnmarshalers specifies a list of type-specific unmarshalers to use, which can be used to override the default unmarshal behavior for values of par
options.go:245
MethodWriteToken
(t Token)
jsontext/encode.go:347
MethodWriteValue
(v Value)
jsontext/encode.go:527
Methodhas
(i uint)
arshal_default.go:2004
Functioninit
Inject support into "jsonopts" to handle these types.
options.go:260
Functioninit
()
v1/encode_test.go:380
Functioninit
Inject functionality into v2 to properly handle v1 types.
v1/inject.go:21
MethodinitFormat
(format string)
arshal_time.go:231
FunctionisLetterOrDigit
(r rune)
fields.go:642
← previousnext →901–1,000 of 1,017, ranked by callers