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
↓ 1 callers
Function
mustReorderObjectsFromDecoder
mustReorderObjectsFromDecoder recursively reorders all object members in place according to the ordering specified in RFC 8785, section 3.2.3. Pre-co
jsontext/value.go:331
↓ 1 callers
Function
mustUnmarshalValue
(t testing.TB, data []byte, newValue func() any)
bench_test.go:435
↓ 1 callers
Function
newInvalidEscapeSequenceError
(what string)
jsontext/coder_test.go:32
↓ 1 callers
Function
newMarshalers
(ms ...*Marshalers)
arshal_funcs.go:98
↓ 1 callers
Function
newUnmarshalers
(us ...*Unmarshalers)
arshal_funcs.go:99
↓ 1 callers
Method
offsetAt
(pos int)
jsontext/encode.go:225
↓ 1 callers
Method
options
()
jsontext/encode.go:144
↓ 1 callers
Function
parseDurationBase10
parseDurationBase10 parses d from a decimal fractional number, where pow10 is a power-of-10 used to scale up the number.
arshal_time.go:445
↓ 1 callers
Function
parseDurationISO8601
parseDurationISO8601 parses a duration according to ISO 8601-1:2019, section 5.5.2.2 and 5.5.2.3 with the following restrictions or extensions: - A l
arshal_time.go:538
↓ 1 callers
Function
putObjectMembers
(ns *[]objectMember)
jsontext/value.go:295
↓ 1 callers
Function
putStreamingDecoder
(d *Decoder)
jsontext/pools.go:153
↓ 1 callers
Function
putStreamingEncoder
(e *Encoder)
jsontext/pools.go:101
↓ 1 callers
Method
readBlock
readBlock reads the next block from a frame.
internal/zstd/zstd.go:371
↓ 1 callers
Method
readFrameHeader
readFrameHeader reads the frame header and prepares to read a block.
internal/zstd/zstd.go:166
↓ 1 callers
Method
readHuff
readHuff reads Huffman table from data starting at off into table. Each entry in a Huffman table is a pair of bytes. The high byte is the encoded valu
internal/zstd/huff.go:23
↓ 1 callers
Method
readHuffLiterals
readHuffLiterals reads and decompresses a Compressed_Literals_Block or a Treeless_Literals_Block. RFC 3.1.1.3.1.4.
internal/zstd/literals.go:84
↓ 1 callers
Method
readLiterals
readLiterals reads and decompresses the literals from data at off. The literals are appended to outbuf, which is returned. Also returns the new input
internal/zstd/literals.go:14
↓ 1 callers
Method
readLiteralsFourStreams
readLiteralsFourStreams reads four interleaved streams of compressed literals.
internal/zstd/literals.go:208
↓ 1 callers
Method
readLiteralsOneStream
readLiteralsOneStream reads a single stream of compressed literals.
internal/zstd/literals.go:179
↓ 1 callers
Method
readRawRLELiterals
readRawRLELiterals reads and decompresses a Raw_Literals_Block or a RLE_Literals_Block. RFC 3.1.1.3.1.1.
internal/zstd/literals.go:32
↓ 1 callers
Method
refill
refill reads and decompresses the next block.
internal/zstd/zstd.go:156
↓ 1 callers
Method
reformatArray
reformatArray parses a JSON array from the start of src and appends it to the end of dst, reformatting whitespace and strings as needed. It returns th
jsontext/encode.go:827
↓ 1 callers
Method
reformatObject
reformatObject parses a JSON object from the start of src and appends it to the end of dst, reformatting whitespace and strings as needed. It returns
jsontext/encode.go:716
↓ 1 callers
Method
replaceLastUnquotedName
replaceLastUnquotedName replaces the last name with the provided name. Invariant: Must call copyQuotedBuffer beforehand.
jsontext/state.go:605
↓ 1 callers
Method
reset
(b []byte, w io.Writer, opts ...Options)
jsontext/encode.go:118
↓ 1 callers
Method
reset
reset resets the state machine. The machine always starts with a minimum depth of 1.
jsontext/state.go:239
↓ 1 callers
Method
reset
reset resets the namespace to be empty.
jsontext/state.go:728
↓ 1 callers
Method
reset
(b []byte, r io.Reader, opts ...Options)
jsontext/decode.go:149
↓ 1 callers
Function
runArshal
(t testing.TB, arshalName string, newValue func() any, data []byte, value any)
bench_test.go:443
↓ 1 callers
Function
runCode
(t testing.TB, codeName, typeName, modeName string, buffer, data []byte, tokens []jsontext.Token)
bench_test.go:483
↓ 1 callers
Function
runDecode
(t testing.TB, typeName, modeName string, buffer, data []byte, tokens []jsontext.Token)
bench_test.go:521
↓ 1 callers
Function
runEncode
(t testing.TB, typeName, modeName string, buffer, data []byte, tokens []jsontext.Token)
bench_test.go:492
↓ 1 callers
Function
runSlowStreamingDecode
runSlowStreamingDecode tests a streaming Decoder operating on a slow io.Reader that only returns 1 byte at a time, which tends to exercise pathologica
bench_test.go:574
↓ 1 callers
Method
save
save stores up to size last bytes from the buf.
internal/zstd/window.go:37
↓ 1 callers
Method
skipFrame
skipFrame skips a skippable frame. RFC 3.1.2.
internal/zstd/zstd.go:320
↓ 1 callers
Method
string
()
jsontext/token.go:289
↓ 1 callers
Function
testCoderInterleaved
(t *testing.T, where jsontest.CasePos, modeName string, td coderTestdataEntry)
jsontext/coder_test.go:455
↓ 1 callers
Function
testDecoder
(t *testing.T, where jsontest.CasePos, typeName string, td coderTestdataEntry)
jsontext/decode_test.go:50
↓ 1 callers
Function
testDecoderErrors
(t *testing.T, where jsontest.CasePos, opts []Options, in string, calls []decoderMethodCall, wantOffset int)
jsontext/decode_test.go:1000
↓ 1 callers
Function
testEncoder
(t *testing.T, where jsontest.CasePos, formatName, typeName string, td coderTestdataEntry)
jsontext/encode_test.go:34
↓ 1 callers
Function
testEncoderErrors
(t *testing.T, where jsontest.CasePos, opts []Options, calls []encoderMethodCall, wantOut string)
jsontext/encode_test.go:707
↓ 1 callers
Function
testFaultyDecoder
(t *testing.T, where jsontest.CasePos, typeName string, td coderTestdataEntry)
jsontext/decode_test.go:127
↓ 1 callers
Function
testFaultyEncoder
(t *testing.T, where jsontest.CasePos, typeName string, td coderTestdataEntry)
jsontext/encode_test.go:105
↓ 1 callers
Function
unmarshalAnyWithRawNumber
unmarshalAnyWithRawNumber specifies that unmarshaling a JSON number into an empty Go interface should use the Number type instead of a float64.
v1/options.go:543
↓ 1 callers
Function
unmarshalArrayAny
unmarshalArrayAny unmarshals a JSON array as a Go []any. It panics if not decoding a JSON array.
arshal_any.go:266
↓ 1 callers
Function
unmarshalEmbeddedFallbackNext
unmarshalEmbeddedFallbackNext unmarshals only the next member in an embedded fallback.
arshal_embedded.go:169
↓ 1 callers
Function
unmarshalObjectAny
unmarshalObjectAny unmarshals a JSON object as a Go map[string]any. It panics if not decoding a JSON object.
arshal_any.go:177
↓ 1 callers
Method
update
update adds a buffer to the has.
internal/zstd/xxhash.go:51
Function
AllowDuplicateNames
AllowDuplicateNames specifies that JSON objects may contain duplicate member names. Disabling the duplicate name check may provide performance benefit
jsontext/options.go:54
Function
AllowInvalidUTF8
AllowInvalidUTF8 specifies that JSON strings may contain invalid UTF-8, which will be mangled as the Unicode replacement character, U+FFFD. This cause
jsontext/options.go:68
Function
AppendFloat
AppendFloat appends src to dst as a JSON number per RFC 8259, section 6. Except for -0, which is formatted as -0 instead of 0, the output is identica
jsontext/value.go:32
Function
AppendFormat
AppendFormat formats the JSON value in src and appends it to dst according to the specified options. See [Value.Format] for more details about the for
jsontext/alias.go:542
Function
AppendQuote
AppendQuote appends a double-quoted JSON string literal representing src to dst and returns the extended buffer. It uses the minimal string representa
jsontext/quote.go:20
Method
AppendText
()
arshal_test.go:608
Method
AppendText
(b []byte)
arshal_test.go:696
Function
AppendUnquote
AppendUnquote appends the decoded interpretation of src as a double-quoted JSON string literal to dst and returns the extended buffer. The input src m
jsontext/quote.go:35
Function
BenchmarkAppendFormat
(b *testing.B)
jsontext/value_test.go:202
Function
BenchmarkCodeDecoder
(b *testing.B)
v1/bench_test.go:256
Function
BenchmarkCodeEncoder
(b *testing.B)
v1/bench_test.go:76
Function
BenchmarkCodeEncoderError
(b *testing.B)
v1/bench_test.go:94
Function
BenchmarkCodeMarshal
(b *testing.B)
v1/bench_test.go:124
Function
BenchmarkCodeMarshalError
(b *testing.B)
v1/bench_test.go:141
Function
BenchmarkCodeUnmarshal
(b *testing.B)
v1/bench_test.go:323
Function
BenchmarkCodeUnmarshalReuse
(b *testing.B)
v1/bench_test.go:341
Function
BenchmarkDecoderStream
(b *testing.B)
v1/bench_test.go:297
Function
BenchmarkEncodeMarshaler
(b *testing.B)
v1/bench_test.go:453
Function
BenchmarkEncoderEncode
(b *testing.B)
v1/bench_test.go:472
Function
BenchmarkGetBool
(b *testing.B)
internal/jsonopts/options_test.go:199
Function
BenchmarkGetIndent
(b *testing.B)
internal/jsonopts/options_test.go:207
Function
BenchmarkGetMarshalers
(b *testing.B)
internal/jsonopts/options_test.go:215
Function
BenchmarkGlobalExperimentalFormatSupport
(b *testing.B)
options_format_test.go:94
Function
BenchmarkIntern
(b *testing.B)
intern_test.go:38
Function
BenchmarkIssue10335
(b *testing.B)
v1/bench_test.go:411
Function
BenchmarkIssue34127
(b *testing.B)
v1/bench_test.go:424
Function
BenchmarkMarshal
(b *testing.B)
bench_test.go:355
Function
BenchmarkMarshalBytes
(b *testing.B)
v1/bench_test.go:218
Function
BenchmarkMarshalBytesError
(b *testing.B)
v1/bench_test.go:229
Function
BenchmarkMarshalMap
(b *testing.B)
v1/bench_test.go:240
Function
BenchmarkNewEncoderEncode
(b *testing.B)
v1/bench_test.go:487
Function
BenchmarkSlowStreamingDecode
(b *testing.B)
bench_test.go:558
Function
BenchmarkTestdata
(b *testing.B)
bench_test.go:399
Function
BenchmarkTextValue
(b *testing.B)
bench_test.go:589
Function
BenchmarkUnicodeDecoder
(b *testing.B)
v1/bench_test.go:281
Function
BenchmarkUnmapped
(b *testing.B)
v1/bench_test.go:440
Function
BenchmarkUnmarshal
(b *testing.B)
bench_test.go:321
Function
BenchmarkUnmarshalFloat64
(b *testing.B)
v1/bench_test.go:372
Function
BenchmarkUnmarshalInt64
(b *testing.B)
v1/bench_test.go:385
Function
BenchmarkUnmarshalMap
(b *testing.B)
v1/bench_test.go:398
Function
BenchmarkUnmarshalString
(b *testing.B)
v1/bench_test.go:359
Function
Bool
Bool constructs a Token representing a JSON boolean.
jsontext/token.go:133
Function
CallMethodsWithLegacySemantics
CallMethodsWithLegacySemantics specifies that calling of type-provided marshal and unmarshal methods follow legacy semantics: - When marshaling, a ma
v1/alias.go:602
Function
CallMethodsWithLegacySemantics
CallMethodsWithLegacySemantics specifies that calling of type-provided marshal and unmarshal methods follow legacy semantics: - When marshaling, a ma
v1/options.go:268
Function
CanonicalizeRawFloats
CanonicalizeRawFloats specifies that when encoding a raw JSON floating-point number (i.e., a number with a fraction or exponent) in a [Token] or [Valu
jsontext/options.go:153
Function
CanonicalizeRawInts
CanonicalizeRawInts specifies that when encoding a raw JSON integer number (i.e., a number without a fraction and exponent) in a [Token] or [Value], t
jsontext/options.go:132
Method
Clone
Clone returns a copy of the token with a value that is not backed by the [Decoder] buffer and therefore remains valid past subsequent [Decoder] calls.
jsontext/token.go:209
Function
Compact
Compact appends to dst the JSON-encoded src with insignificant space characters elided.
v1/indent.go:49
Method
CountNextDelimWhitespace
CountNextDelimWhitespace counts the number of upcoming bytes of delimiter or whitespace characters. This method is used for error reporting at the sem
jsontext/decode.go:385
Function
DefaultOptionsV1
DefaultOptionsV1 is the full set of all options that define v1 semantics. It is equivalent to the following boolean options being set to true: - [Cal
v1/options.go:229
Function
DefaultOptionsV2
DefaultOptionsV2 is the full set of all options that define v2 semantics. It is equivalent to the set of options in [encoding/json.DefaultOptionsV1] a
options.go:102
Function
Deterministic
Deterministic specifies that the same input value will be serialized as the exact same output bytes. Different processes of the same program will seri
options.go:141
← previous
next →
501–600 of 1,017, ranked by callers