Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,014 in github.com/buger/jsonparser
⨍
Functions
1,014
◇
Types & classes
26
↓ 2 callers
Function
runPathOp
runPathOp runs a single parser operation with crash-capture recovery. On panic, the crash is recorded to disk and the counter is incremented; the test
path_fuzz_test.go:143
↓ 2 callers
Function
runStructureAwareGates
============================================================================= Gate runner (the assertions that catch each bug class) =================
json_fuzz_test.go:1242
↓ 2 callers
Function
sameTree
SYS-REQ-008
parser.go:512
↓ 2 callers
Function
stringInsertionPoints
stringInsertionPoints returns the byte positions of all unescaped closing '"' chars that terminate a string body in data. Used by mutation operators t
json_fuzz_test.go:782
↓ 2 callers
Function
unescapeToUTF8
unescapeToUTF8 unescapes the single escape sequence starting at 'in' into 'out' and returns how many characters were consumed from 'in' and emitted in
escape.go:172
↓ 1 callers
Function
FuzzTokenStart
SYS-REQ-001
fuzz.go:83
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:30
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:223
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:420
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:878
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1205
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1451
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1765
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1958
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2285
↓ 1 callers
Method
MarshalJSONBuf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2617
↓ 1 callers
Method
String
Test helper for SYS-REQ-007.
parser_test.go:1760
↓ 1 callers
Function
StringToBytes
(s string)
bytes_safe.go:24
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:254
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:475
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:957
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1512
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2031
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2338
↓ 1 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2696
↓ 1 callers
Function
applySequenceStep
============================================================================= SEQUENCE fuzzer (closes Dimension 2: interaction / sequence coverage) ==
path_fuzz_test.go:495
↓ 1 callers
Function
assertAfterStep
assertAfterStep runs the post-step invariants: no panic (caught above), json.Valid (when input was valid + shape matches), and the per-step sequence a
path_fuzz_test.go:522
↓ 1 callers
Function
bytesEqualStrSafe
Test helper for SYS-REQ-001 and SYS-REQ-008.
bytes_unsafe_test.go:21
↓ 1 callers
Function
bytesEqualStrUnsafeSlower
Test helper for SYS-REQ-001 and SYS-REQ-008.
bytes_unsafe_test.go:26
↓ 1 callers
Function
canonicalizeJSON
--------------------------------------------------------------------------- Comparison helpers — canonicalize both sides and compare bytes / values. -
reference_oracle_test.go:336
↓ 1 callers
Function
checkDeterminismGate
checkDeterminismGate (Gate 6: DETERMINISM) asserts that two Get calls on the same input+path return byte-identical (value, type, offset) and the same
json_fuzz_test.go:1106
↓ 1 callers
Function
checkNumericOracle
checkNumericOracle cross-checks jsonparser's ParseInt/ParseFloat against the strconv reference (the NUMERIC-ORACLE gate). strconv is the reference imp
json_fuzz_test.go:1436
↓ 1 callers
Function
checkOffsetBoundsGate
checkOffsetBoundsGate (Gate 5: OFFSET-BOUNDS) asserts that Get's offset return is within the documented range [-1, len(data)]. Per SYS-REQ-016 / SYS-R
json_fuzz_test.go:1088
↓ 1 callers
Function
checkParseBooleanGate
checkParseBooleanGate (Gate 9: PARSEBOOLEAN) cross-checks ParseBoolean against strconv.ParseBool on Boolean-typed values. Closes the API-coverage blin
json_fuzz_test.go:1211
↓ 1 callers
Function
checkParseStringGate
checkParseStringGate (Gate 8: PARSESTRING) extracts a String-typed value via Get and calls ParseString on the raw escaped content. Closes the API- cov
json_fuzz_test.go:1159
↓ 1 callers
Function
checkSliceAliasingGate
checkSliceAliasingGate (Gate 7: ALIASING) asserts that the value bytes Get returns appear as a sub-slice of the input data. Per Get's documentation, t
json_fuzz_test.go:1133
↓ 1 callers
Function
closeEnough
closeEnough reports whether two floats agree to within a relative tolerance suitable for decimal round-trip comparisons.
property_test.go:980
↓ 1 callers
Function
closeEnoughFloat
closeEnoughFloat reports whether two float64 values agree to within a relative tolerance of ~4 ULP — used only for adversarial inputs where rounding m
reference_oracle_test.go:929
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:395
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:687
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:854
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1013
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1177
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1452
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1717
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1906
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2095
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2311
↓ 1 callers
Method
codecDecodeSelfFromArray
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2545
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:314
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:654
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:818
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:980
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1144
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1389
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1669
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1873
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2056
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2269
↓ 1 callers
Method
codecDecodeSelfFromMap
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2497
↓ 1 callers
Function
combineUTF16Surrogates
NOTE: combineUTF16Surrogates is blocked by an unsupported `<<` shift op in the translator (Phase T.* gap, beyond #1/#2/#5). Even though Fix #6 resolve
escape.go:22
↓ 1 callers
Function
compareNumberParsing
compareNumberParsing cross-checks jsonparser.ParseInt/ParseFloat against encoding/json's json.Number (the canonical reference).
encoding_json_fuzz_test.go:582
↓ 1 callers
Function
crashSignature
(panicMsg string, stack []byte)
fuzz_native_test.go:67
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_CBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:635
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_CBGithub
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:514
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_CBGravatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:560
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_CBName
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:468
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_CBPerson
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:376
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_DSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:188
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_DSTopicsList
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:105
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_DSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:242
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_LargePayload
suppress unused package warning Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:12
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_MediumPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:288
↓ 1 callers
Function
easyjson_decode_github_com_buger_jsonparser_benchmark_SmallPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:681
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_CBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:657
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_CBGithub
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:536
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_CBGravatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:600
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_CBName
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:490
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_CBPerson
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:420
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:212
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_DSTopicsList
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:147
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_DSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:264
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_LargePayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:60
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_MediumPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:332
↓ 1 callers
Function
easyjson_encode_github_com_buger_jsonparser_benchmark_SmallPayload
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:719
↓ 1 callers
Method
encSlicePtrtoCBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2610
↓ 1 callers
Method
encSlicePtrtoDSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2712
↓ 1 callers
Method
encSlicePtrtoDSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2814
↓ 1 callers
Function
genArray
genArray emits an array with 0–5 elements (including the empty array []).
json_fuzz_test.go:220
↓ 1 callers
Function
genKey
genKey emits a JSON object key (a double-quoted string). The key content is drawn from a weighted distribution that includes the cases most likely to
json_fuzz_test.go:239
↓ 1 callers
Function
genNumber
genNumber emits a JSON number. The distribution is weighted toward the fast-path (small ints) but includes overflow boundaries, floats, and intentiona
json_fuzz_test.go:401
↓ 1 callers
Function
genObject
genObject emits an object with 0–5 entries. Keys are drawn from a set that includes the dangerous cases: empty-string "", unicode (\uXXXX), long, and
json_fuzz_test.go:205
↓ 1 callers
Function
genPathComponent
genPathComponent returns a single adversarial path component.
json_fuzz_test.go:945
↓ 1 callers
Function
genString
genString emits a JSON string value. Includes empty "", ASCII, strings with escape sequences, unicode escapes, and long strings.
json_fuzz_test.go:299
↓ 1 callers
Function
getTestCheckFoundAndNoError
checkFoundAndNoError checks the dataType and error return from Get*() against the test case expectations. Returns true the test should proceed to chec
parser_test.go:1209
↓ 1 callers
Function
injectPathHazard
injectPathHazard randomly injects an adversarial path component into an existing path. This implements the injectEmptyKeyComponent and injectOobArrayI
json_fuzz_test.go:977
↓ 1 callers
Function
isJSONWhitespace
isJSONWhitespace reports whether b is one of the four JSON whitespace bytes (space 0x20, tab 0x09, LF 0x0A, CR 0x0D) per RFC 8259 §2. Used by Delete's
parser.go:72
↓ 1 callers
Function
isSameMemory
isSameMemory checks if two slices contain the same memory pointer (meaning one is a subslice of the other, with possibly differing lengths/capacities)
escape_test.go:156
↓ 1 callers
Function
isUTF16EncodedRune
isUTF16EncodedRune checks if a rune is in the range for non-BMP characters, which is used to describe UTF16 chars. Source: https://en.wikipedia.org/wi
escape.go:111
↓ 1 callers
Function
oracleRandKey
oracleRandKey generates a short object key. Includes "" (empty) to exercise the 8th-panic-site hazard. Bracket-style strings like "[0]" are NOT emitte
reference_oracle_test.go:239
← previous
next →
101–200 of 1,014, ranked by callers