Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,168 in github.com/buger/jsonparser
⨍
Functions
1,168
◇
Types & classes
46
↓ 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:935
↓ 1 callers
Function
closingDelimiter
SYS-REQ-116
reader_parser.go:555
↓ 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
createInsertComponentBuffered
(keys []string, setValue []byte, comma, object bool)
issues_56_107_229_test.go:237
↓ 1 callers
Function
eachKeyWildcard
SYS-REQ-113
wildcard.go:21
↓ 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
expandWildcardPaths
SYS-REQ-113
wildcard.go:112
↓ 1 callers
Method
findArrayValue
SYS-REQ-116
reader_parser.go:324
↓ 1 callers
Method
findObjectValue
SYS-REQ-116
reader_parser.go:231
↓ 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:1208
↓ 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
isReaderValueDelimiter
SYS-REQ-116
reader_parser.go:588
↓ 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:118
↓ 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
↓ 1 callers
Function
oracleSetValue
--------------------------------------------------------------------------- Property 2: Set append/replace — Set then Get returns the set value. This
reference_oracle_test.go:499
↓ 1 callers
Function
parseBracketPathComponent
SYS-REQ-114
path_compiler.go:132
↓ 1 callers
Function
parseIntOverflows
Test helper for SYS-REQ-015.
bytes_test.go:153
↓ 1 callers
Function
parseQuotedPathKey
SYS-REQ-114
path_compiler.go:99
↓ 1 callers
Function
parseReaderArrayIndex
SYS-REQ-116
reader_parser.go:398
↓ 1 callers
Function
parseTestCheckNoError
parseTestCheckNoError checks the error return from Parse*() against the test case expectations. Returns true the test should proceed to checking the a
parser_test.go:2178
↓ 1 callers
Function
randJSONString
(r *mathrand.Rand)
property_test.go:93
↓ 1 callers
Function
randomExistingJSONPath
(r *mathrand.Rand, value interface{})
property_test.go:435
↓ 1 callers
Method
readMore
SYS-REQ-116
reader_parser.go:622
↓ 1 callers
Method
readObjectKey
SYS-REQ-116
reader_parser.go:407
↓ 1 callers
Function
recordCrash
(target string, panicVal interface{}, stack, input []byte)
fuzz_native_test.go:83
↓ 1 callers
Function
recordPathCrash
recordPathCrash writes a JSON artifact capturing the data + path that triggered a panic, so the crash is reproducible outside the fuzzer. Deduplicated
path_fuzz_test.go:66
↓ 1 callers
Function
runDeepNestingDepths
============================================================================= Gate D: Deep-nesting stack safety (CVE-2020-29652 class) ===============
encoding_json_fuzz_test.go:306
↓ 1 callers
Function
runDeleteTests
Test helper for SYS-REQ-010.
parser_test.go:1315
↓ 1 callers
Function
runDifferentialGate
============================================================================= Gate G: Differential — jsonparser vs encoding/json number parsing ======
encoding_json_fuzz_test.go:555
↓ 1 callers
Function
runDoSCase
runDoSCase runs one op under the DoS budget. A panic or a timeout exceeds the budget — either is a finding.
json_fuzz_test.go:1687
↓ 1 callers
Function
runMarshalDeterminismGate
============================================================================= Gate I: Marshal determinism on round-tripped values ====================
encoding_json_fuzz_test.go:509
↓ 1 callers
Function
runOpNoPanic
runOpNoPanic runs fn and fails the test on panic (the NO-PANIC gate). The panic value and stack are included in the failure message so the fuzz engine
json_fuzz_test.go:1420
↓ 1 callers
Function
runRoundTripGate
============================================================================= Gate C: Unmarshal → Marshal → Unmarshal round-trip equivalence =========
encoding_json_fuzz_test.go:229
↓ 1 callers
Function
runSetTests
Test helper for SYS-REQ-009.
parser_test.go:1288
↓ 1 callers
Function
runStreamingConsistencyGate
============================================================================= Gate E: Streaming Decoder vs one-shot Unmarshal consistency ============
encoding_json_fuzz_test.go:348
↓ 1 callers
Function
runTransformDoSGate
runTransformDoSGate runs Compact/Indent/HTMLEscape on a deeply-nested input under a wall-clock budget. A panic OR a hang is a finding.
encoding_json_fuzz_test.go:450
↓ 1 callers
Function
runTransformGate
============================================================================= Gate F: Compact / Indent / HTMLEscape must never panic =================
encoding_json_fuzz_test.go:409
↓ 1 callers
Function
runValidConsistencyGate
============================================================================= Gate A: NO-PANIC (embedded in every gate via encodingJSONNoPanic) ======
encoding_json_fuzz_test.go:174
↓ 1 callers
Function
safeCall
safeCall invokes a fuzz harness, recovering from any panic and returning the harness result or -1 on panic.
property_test.go:993
↓ 1 callers
Method
scanComposite
SYS-REQ-116
reader_parser.go:515
↓ 1 callers
Method
scanScalar
SYS-REQ-116
reader_parser.go:563
↓ 1 callers
Function
setPathSemanticallyValid
setPathSemanticallyValid reports whether applying Set/Delete with `path` to a doc marshaled from `v` is well-defined: each array-index component must
reference_oracle_test.go:409
↓ 1 callers
Function
setTestCheckFoundAndNoError
Test helper for SYS-REQ-009.
parser_test.go:1263
↓ 1 callers
Function
strconvParseFloat
strconvParseFloat is a thin wrapper so the SEQUENCE closures don't have to import strconv (the package-level import set already lives in json_fuzz_tes
path_fuzz_test.go:711
↓ 1 callers
Function
testIter
Test helper for SYS-REQ-008.
parser_error_test.go:17
← previous
next →
201–300 of 1,168, ranked by callers