Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-json-experiment/json
/ functions
Functions
1,017 in github.com/go-json-experiment/json
⨍
Functions
1,017
◇
Types & classes
442
Function
TestSkipArrayObjects
Test that extra object elements in an array do not result in a "data changing underfoot" error. Issue 3717
v1/decode_test.go:2495
Function
TestSliceNoCycle
(t *testing.T)
v1/encode_test.go:404
Function
TestSliceOfCustomByte
The fix for issue 8962 introduced a regression. Issue 12921.
v1/decode_test.go:2347
Function
TestStateMachine
(t *testing.T)
jsontext/state_test.go:73
Function
TestStringKind
(t *testing.T)
v1/decode_test.go:2308
Function
TestStringOption
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
Function
TestStructTagObjectKey
(t *testing.T)
v1/tagkey_test.go:75
Function
TestSynctestMarshal
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
Function
TestTaggedFieldDominates
Test that a field with a tag dominates untagged fields.
v1/encode_test.go:852
Function
TestTextMarshalerMapKeysAreSorted
(t *testing.T)
v1/encode_test.go:1088
Function
TestTimeDurations
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
Function
TestTokenAccessors
(t *testing.T)
jsontext/token_test.go:36
Function
TestTokenClone
(t *testing.T)
jsontext/token_test.go:206
Function
TestTokenError
(t *testing.T)
v1/stream_test.go:519
Function
TestTokenStringAllocations
(t *testing.T)
jsontext/token_test.go:17
Function
TestTruncatePointer
(t *testing.T)
internal/jsonwire/wire_test.go:76
Function
TestUnmarshal
(t *testing.T)
arshal_test.go:4676
Function
TestUnmarshal
(t *testing.T)
v1/decode_test.go:1446
Function
TestUnmarshalEmbeddedUnexported
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
Function
TestUnmarshalErrorAfterMultipleJSON
(t *testing.T)
v1/decode_test.go:2767
Function
TestUnmarshalInterface
(t *testing.T)
v1/decode_test.go:1607
Function
TestUnmarshalJSONLiteralError
(t *testing.T)
v1/decode_test.go:2482
Function
TestUnmarshalMapWithTextUnmarshalerStringKey
Test unmarshal to a map, where the map key is a user defined type. See golang.org/issues/34437.
v1/decode_test.go:2831
Function
TestUnmarshalMarshal
(t *testing.T)
v1/decode_test.go:1533
Function
TestUnmarshalMaxDepth
(t *testing.T)
v1/decode_test.go:2887
Function
TestUnmarshalNulls
JSON null values should be ignored for primitives and string values instead of resulting in an error. Issue 2540
v1/decode_test.go:2173
Function
TestUnmarshalPanic
(t *testing.T)
v1/decode_test.go:2812
Function
TestUnmarshalPtrPtr
(t *testing.T)
v1/decode_test.go:1618
Function
TestUnmarshalRescanLiteralMangledUnquote
(t *testing.T)
v1/decode_test.go:2842
Function
TestUnmarshalSyntax
(t *testing.T)
v1/decode_test.go:2416
Function
TestUnmarshalTypeError
(t *testing.T)
v1/decode_test.go:2364
Function
TestUnmarshalTypeErrorMessage
(t *testing.T)
v1/decode_test.go:2388
Function
TestUnmarshalUnexported
(t *testing.T)
v1/decode_test.go:2452
Function
TestUnsupportedValues
(t *testing.T)
v1/encode_test.go:410
Function
TestValid
(t *testing.T)
v1/scanner_test.go:31
Function
TestValueMethods
(t *testing.T)
jsontext/value_test.go:147
Function
Uint
Uint constructs a Token representing a JSON number from a uint64.
jsontext/token.go:198
Function
Unmarshal
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
Function
Unmarshal
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
Function
UnmarshalArrayFromAnyLength
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
Function
UnmarshalArrayFromAnyLength
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
Function
UnmarshalDecode
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
Method
UnmarshalJSON
(val []byte)
arshal_test.go:635
Method
UnmarshalJSON
(b []byte)
arshal_test.go:673
Method
UnmarshalJSON
(b []byte)
arshal_test.go:705
Method
UnmarshalJSON
(b []byte)
bench_test.go:300
Method
UnmarshalJSON
(b []byte)
internal/jsontest/testdata.go:608
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:68
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:74
Method
UnmarshalJSON
(b []byte)
v1/decode_test.go:115
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:304
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:322
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:360
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:378
Method
UnmarshalJSON
(data []byte)
v1/decode_test.go:2298
Method
UnmarshalJSON
(b []byte)
v1/decode_test.go:2470
Method
UnmarshalJSON
([]byte)
v1/decode_test.go:2810
Method
UnmarshalJSON
([]byte)
v1/encode_test.go:460
Method
UnmarshalJSON
UnmarshalJSON always stores a string with the literal "CALLED".
v1/diff_test.go:576
Method
UnmarshalJSON
(b []byte)
v1/example_marshaling_test.go:25
Method
UnmarshalJSON
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
Method
UnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:629
Method
UnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:650
Method
UnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:658
Method
UnmarshalJSONFrom
(dec *jsontext.Decoder)
arshal_test.go:702
Method
UnmarshalJSONFrom
UnmarshalJSONFrom decodes a JSON object from dec into obj.
example_orderedobject_test.go:54
Method
UnmarshalJSONFrom
(dec *jsontext.Decoder)
bench_test.go:312
Method
UnmarshalJSONFrom
UnmarshalJSONFrom implements [jsonv2.UnmarshalerFrom].
v1/decode.go:237
Function
UnmarshalRead
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
Method
UnmarshalText
(b []byte)
arshal_test.go:685
Method
UnmarshalText
(b []byte)
arshal_test.go:708
Method
UnmarshalText
(b []byte)
arshal_test.go:715
Method
UnmarshalText
(b []byte)
bench_test.go:288
Method
UnmarshalText
(b []byte)
v1/decode_test.go:133
Method
UnmarshalText
(data []byte)
v1/decode_test.go:332
Method
UnmarshalText
(data []byte)
v1/decode_test.go:350
Method
UnmarshalText
(data []byte)
v1/decode_test.go:388
Method
UnmarshalText
(data []byte)
v1/decode_test.go:406
Method
UnmarshalText
(text []byte)
v1/decode_test.go:2304
Method
UnmarshalText
(text []byte)
v1/decode_test.go:2824
Method
UnmarshalText
([]byte)
v1/encode_test.go:479
Method
UnmarshalText
(text []byte)
v1/example_text_marshaling_test.go:25
Method
Unwrap
()
internal/zstd/zstd.go:481
Method
Unwrap
()
v1/decode.go:158
Method
Unwrap
()
jsontext/errors.go:42
Method
Unwrap
()
jsontext/errors.go:143
Function
Valid
Valid reports whether data is a valid JSON encoding.
v1/scanner.go:23
Method
Visit
(node ast.Node)
alias_gen.go:300
Function
WithIndent
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
Function
WithIndentPrefix
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
Function
WithMarshalers
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
Function
WithUnmarshalers
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
Method
WriteToken
(t Token)
jsontext/encode.go:347
Method
WriteValue
(v Value)
jsontext/encode.go:527
Method
has
(i uint)
arshal_default.go:2004
Function
init
Inject support into "jsonopts" to handle these types.
options.go:260
Function
init
()
v1/encode_test.go:380
Function
init
Inject functionality into v2 to properly handle v1 types.
v1/inject.go:21
Method
initFormat
(format string)
arshal_time.go:231
Function
isLetterOrDigit
(r rune)
fields.go:642
← previous
next →
901–1,000 of 1,017, ranked by callers