MCPcopy Create free account

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

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

↓ 1 callersFunctionmustReorderObjectsFromDecoder
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 callersFunctionmustUnmarshalValue
(t testing.TB, data []byte, newValue func() any)
bench_test.go:435
↓ 1 callersFunctionnewInvalidEscapeSequenceError
(what string)
jsontext/coder_test.go:32
↓ 1 callersFunctionnewMarshalers
(ms ...*Marshalers)
arshal_funcs.go:98
↓ 1 callersFunctionnewUnmarshalers
(us ...*Unmarshalers)
arshal_funcs.go:99
↓ 1 callersMethodoffsetAt
(pos int)
jsontext/encode.go:225
↓ 1 callersMethodoptions
()
jsontext/encode.go:144
↓ 1 callersFunctionparseDurationBase10
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 callersFunctionparseDurationISO8601
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 callersFunctionputObjectMembers
(ns *[]objectMember)
jsontext/value.go:295
↓ 1 callersFunctionputStreamingDecoder
(d *Decoder)
jsontext/pools.go:153
↓ 1 callersFunctionputStreamingEncoder
(e *Encoder)
jsontext/pools.go:101
↓ 1 callersMethodreadBlock
readBlock reads the next block from a frame.
internal/zstd/zstd.go:371
↓ 1 callersMethodreadFrameHeader
readFrameHeader reads the frame header and prepares to read a block.
internal/zstd/zstd.go:166
↓ 1 callersMethodreadHuff
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 callersMethodreadHuffLiterals
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 callersMethodreadLiterals
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 callersMethodreadLiteralsFourStreams
readLiteralsFourStreams reads four interleaved streams of compressed literals.
internal/zstd/literals.go:208
↓ 1 callersMethodreadLiteralsOneStream
readLiteralsOneStream reads a single stream of compressed literals.
internal/zstd/literals.go:179
↓ 1 callersMethodreadRawRLELiterals
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 callersMethodrefill
refill reads and decompresses the next block.
internal/zstd/zstd.go:156
↓ 1 callersMethodreformatArray
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 callersMethodreformatObject
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 callersMethodreplaceLastUnquotedName
replaceLastUnquotedName replaces the last name with the provided name. Invariant: Must call copyQuotedBuffer beforehand.
jsontext/state.go:605
↓ 1 callersMethodreset
(b []byte, w io.Writer, opts ...Options)
jsontext/encode.go:118
↓ 1 callersMethodreset
reset resets the state machine. The machine always starts with a minimum depth of 1.
jsontext/state.go:239
↓ 1 callersMethodreset
reset resets the namespace to be empty.
jsontext/state.go:728
↓ 1 callersMethodreset
(b []byte, r io.Reader, opts ...Options)
jsontext/decode.go:149
↓ 1 callersFunctionrunArshal
(t testing.TB, arshalName string, newValue func() any, data []byte, value any)
bench_test.go:443
↓ 1 callersFunctionrunCode
(t testing.TB, codeName, typeName, modeName string, buffer, data []byte, tokens []jsontext.Token)
bench_test.go:483
↓ 1 callersFunctionrunDecode
(t testing.TB, typeName, modeName string, buffer, data []byte, tokens []jsontext.Token)
bench_test.go:521
↓ 1 callersFunctionrunEncode
(t testing.TB, typeName, modeName string, buffer, data []byte, tokens []jsontext.Token)
bench_test.go:492
↓ 1 callersFunctionrunSlowStreamingDecode
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 callersMethodsave
save stores up to size last bytes from the buf.
internal/zstd/window.go:37
↓ 1 callersMethodskipFrame
skipFrame skips a skippable frame. RFC 3.1.2.
internal/zstd/zstd.go:320
↓ 1 callersMethodstring
()
jsontext/token.go:289
↓ 1 callersFunctiontestCoderInterleaved
(t *testing.T, where jsontest.CasePos, modeName string, td coderTestdataEntry)
jsontext/coder_test.go:455
↓ 1 callersFunctiontestDecoder
(t *testing.T, where jsontest.CasePos, typeName string, td coderTestdataEntry)
jsontext/decode_test.go:50
↓ 1 callersFunctiontestDecoderErrors
(t *testing.T, where jsontest.CasePos, opts []Options, in string, calls []decoderMethodCall, wantOffset int)
jsontext/decode_test.go:1000
↓ 1 callersFunctiontestEncoder
(t *testing.T, where jsontest.CasePos, formatName, typeName string, td coderTestdataEntry)
jsontext/encode_test.go:34
↓ 1 callersFunctiontestEncoderErrors
(t *testing.T, where jsontest.CasePos, opts []Options, calls []encoderMethodCall, wantOut string)
jsontext/encode_test.go:707
↓ 1 callersFunctiontestFaultyDecoder
(t *testing.T, where jsontest.CasePos, typeName string, td coderTestdataEntry)
jsontext/decode_test.go:127
↓ 1 callersFunctiontestFaultyEncoder
(t *testing.T, where jsontest.CasePos, typeName string, td coderTestdataEntry)
jsontext/encode_test.go:105
↓ 1 callersFunctionunmarshalAnyWithRawNumber
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 callersFunctionunmarshalArrayAny
unmarshalArrayAny unmarshals a JSON array as a Go []any. It panics if not decoding a JSON array.
arshal_any.go:266
↓ 1 callersFunctionunmarshalEmbeddedFallbackNext
unmarshalEmbeddedFallbackNext unmarshals only the next member in an embedded fallback.
arshal_embedded.go:169
↓ 1 callersFunctionunmarshalObjectAny
unmarshalObjectAny unmarshals a JSON object as a Go map[string]any. It panics if not decoding a JSON object.
arshal_any.go:177
↓ 1 callersMethodupdate
update adds a buffer to the has.
internal/zstd/xxhash.go:51
FunctionAllowDuplicateNames
AllowDuplicateNames specifies that JSON objects may contain duplicate member names. Disabling the duplicate name check may provide performance benefit
jsontext/options.go:54
FunctionAllowInvalidUTF8
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
FunctionAppendFloat
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
FunctionAppendFormat
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
FunctionAppendQuote
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
MethodAppendText
()
arshal_test.go:608
MethodAppendText
(b []byte)
arshal_test.go:696
FunctionAppendUnquote
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
FunctionBenchmarkAppendFormat
(b *testing.B)
jsontext/value_test.go:202
FunctionBenchmarkCodeDecoder
(b *testing.B)
v1/bench_test.go:256
FunctionBenchmarkCodeEncoder
(b *testing.B)
v1/bench_test.go:76
FunctionBenchmarkCodeEncoderError
(b *testing.B)
v1/bench_test.go:94
FunctionBenchmarkCodeMarshal
(b *testing.B)
v1/bench_test.go:124
FunctionBenchmarkCodeMarshalError
(b *testing.B)
v1/bench_test.go:141
FunctionBenchmarkCodeUnmarshal
(b *testing.B)
v1/bench_test.go:323
FunctionBenchmarkCodeUnmarshalReuse
(b *testing.B)
v1/bench_test.go:341
FunctionBenchmarkDecoderStream
(b *testing.B)
v1/bench_test.go:297
FunctionBenchmarkEncodeMarshaler
(b *testing.B)
v1/bench_test.go:453
FunctionBenchmarkEncoderEncode
(b *testing.B)
v1/bench_test.go:472
FunctionBenchmarkGetBool
(b *testing.B)
internal/jsonopts/options_test.go:199
FunctionBenchmarkGetIndent
(b *testing.B)
internal/jsonopts/options_test.go:207
FunctionBenchmarkGetMarshalers
(b *testing.B)
internal/jsonopts/options_test.go:215
FunctionBenchmarkGlobalExperimentalFormatSupport
(b *testing.B)
options_format_test.go:94
FunctionBenchmarkIntern
(b *testing.B)
intern_test.go:38
FunctionBenchmarkIssue10335
(b *testing.B)
v1/bench_test.go:411
FunctionBenchmarkIssue34127
(b *testing.B)
v1/bench_test.go:424
FunctionBenchmarkMarshal
(b *testing.B)
bench_test.go:355
FunctionBenchmarkMarshalBytes
(b *testing.B)
v1/bench_test.go:218
FunctionBenchmarkMarshalBytesError
(b *testing.B)
v1/bench_test.go:229
FunctionBenchmarkMarshalMap
(b *testing.B)
v1/bench_test.go:240
FunctionBenchmarkNewEncoderEncode
(b *testing.B)
v1/bench_test.go:487
FunctionBenchmarkSlowStreamingDecode
(b *testing.B)
bench_test.go:558
FunctionBenchmarkTestdata
(b *testing.B)
bench_test.go:399
FunctionBenchmarkTextValue
(b *testing.B)
bench_test.go:589
FunctionBenchmarkUnicodeDecoder
(b *testing.B)
v1/bench_test.go:281
FunctionBenchmarkUnmapped
(b *testing.B)
v1/bench_test.go:440
FunctionBenchmarkUnmarshal
(b *testing.B)
bench_test.go:321
FunctionBenchmarkUnmarshalFloat64
(b *testing.B)
v1/bench_test.go:372
FunctionBenchmarkUnmarshalInt64
(b *testing.B)
v1/bench_test.go:385
FunctionBenchmarkUnmarshalMap
(b *testing.B)
v1/bench_test.go:398
FunctionBenchmarkUnmarshalString
(b *testing.B)
v1/bench_test.go:359
FunctionBool
Bool constructs a Token representing a JSON boolean.
jsontext/token.go:133
FunctionCallMethodsWithLegacySemantics
CallMethodsWithLegacySemantics specifies that calling of type-provided marshal and unmarshal methods follow legacy semantics: - When marshaling, a ma
v1/alias.go:602
FunctionCallMethodsWithLegacySemantics
CallMethodsWithLegacySemantics specifies that calling of type-provided marshal and unmarshal methods follow legacy semantics: - When marshaling, a ma
v1/options.go:268
FunctionCanonicalizeRawFloats
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
FunctionCanonicalizeRawInts
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
MethodClone
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
FunctionCompact
Compact appends to dst the JSON-encoded src with insignificant space characters elided.
v1/indent.go:49
MethodCountNextDelimWhitespace
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
FunctionDefaultOptionsV1
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
FunctionDefaultOptionsV2
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
FunctionDeterministic
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
← previousnext →501–600 of 1,017, ranked by callers