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
↓ 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
parseIntOverflows
Test helper for SYS-REQ-015.
bytes_test.go:153
↓ 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:2179
↓ 1 callers
Function
randJSONString
(r *mathrand.Rand)
property_test.go:92
↓ 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:1316
↓ 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:1289
↓ 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:880
↓ 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:1264
↓ 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:717
↓ 1 callers
Function
testIter
Test helper for SYS-REQ-008.
parser_error_test.go:17
↓ 1 callers
Function
toStringArray
Test helper for SYS-REQ-006 and SYS-REQ-008.
parser_test.go:25
↓ 1 callers
Function
truncateForName
truncateForName renders a byte slice for use as a subtest name, capping the length so deeply-nested seeds (100 KB) don't produce gigantic test IDs.
encoding_json_fuzz_test.go:767
Function
BenchmarkBytesEqualStrSafe
Alternative implementation without using unsafe Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:67
Function
BenchmarkBytesEqualStrUnsafeSlower
Alternative implementation using unsafe, but that is slower than the current implementation Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:76
Function
BenchmarkDeleteLarge
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_delete_test.go:36
Function
BenchmarkDeleteNested
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_delete_test.go:24
Function
BenchmarkDeleteSmall
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_delete_test.go:12
Function
BenchmarkDjsonLarge
* github.com/a8m/djson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-RE
benchmark/benchmark_large_payload_test.go:158
Function
BenchmarkDjsonMedium
* github.com/a8m/djson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-RE
benchmark/benchmark_medium_payload_test.go:443
Function
BenchmarkDjsonSmall
* github.com/a8m/djson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-RE
benchmark/benchmark_small_payload_test.go:440
Function
BenchmarkEasyJsonLarge
* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_large_payload_test.go:132
Function
BenchmarkEasyJsonMedium
* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_medium_payload_test.go:503
Function
BenchmarkEasyJsonSmall
* github.com/mailru/easyjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_small_payload_test.go:485
Function
BenchmarkEncodingJsonInterfaceLarge
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A reqproof:proptest:
benchmark/benchmark_large_payload_test.go:78
Function
BenchmarkEncodingJsonInterfaceMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:257
Function
BenchmarkEncodingJsonInterfaceSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:261
Function
BenchmarkEncodingJsonStructLarge
* encoding/json */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004:
benchmark/benchmark_large_payload_test.go:56
Function
BenchmarkEncodingJsonStructMedium
* encoding/json */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004:
benchmark/benchmark_medium_payload_test.go:233
Function
BenchmarkEncodingJsonStructSmall
* encoding/json */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004:
benchmark/benchmark_small_payload_test.go:241
Function
BenchmarkEqualStr
Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:58
Function
BenchmarkFFJsonLarge
* github.com/pquerna/ffjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC S
benchmark/benchmark_large_payload_test.go:107
Function
BenchmarkFFJsonMedium
* github.com/pquerna/ffjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC S
benchmark/benchmark_medium_payload_test.go:352
Function
BenchmarkFFJsonSmall
* github.com/pquerna/ffjson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC S
benchmark/benchmark_small_payload_test.go:363
Function
BenchmarkGabsMedium
* github.com/Jeffail/gabs */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK
benchmark/benchmark_medium_payload_test.go:291
Function
BenchmarkGabsSmall
* github.com/Jeffail/gabs */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK
benchmark/benchmark_small_payload_test.go:285
Function
BenchmarkGet_StringValue_NoEscape
--- end-to-end Get with a string value ------------------------------------- Verifies that stringEnd's fast path actually shows up in a realistic call
optimization_bench_test.go:86
Function
BenchmarkGoSimpleJsonMedium
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_medium_payload_test.go:323
Function
BenchmarkGoSimplejsonSetSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:336
Function
BenchmarkGoSimplejsonSmall
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_small_payload_test.go:312
Function
BenchmarkJasonMedium
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_medium_payload_test.go:379
Function
BenchmarkJasonSmall
* github.com/bitly/go-simplejson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_small_payload_test.go:386
Function
BenchmarkJsonParserDelSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:213
Function
BenchmarkJsonParserDeleteMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:63
Function
BenchmarkJsonParserEachKeyManualMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:87
Function
BenchmarkJsonParserEachKeyManualSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:66
Function
BenchmarkJsonParserEachKeyStructMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:124
Function
BenchmarkJsonParserEachKeyStructSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:101
Function
BenchmarkJsonParserLarge
* github.com/buger/jsonparser */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_large_payload_test.go:31
Function
BenchmarkJsonParserMedium
* github.com/buger/jsonparser */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_medium_payload_test.go:39
Function
BenchmarkJsonParserObjectEachStructMedium
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_medium_payload_test.go:173
Function
BenchmarkJsonParserObjectEachStructSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:142
Function
BenchmarkJsonParserSetSmall
Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC STK-REQ-004: N/A Verifies: STK-REQ-
benchmark/benchmark_small_payload_test.go:191
Function
BenchmarkJsonParserSmall
* github.com/buger/jsonparser */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_small_payload_test.go:44
Function
BenchmarkParseInt
Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:125
Function
BenchmarkParseIntOverflows
Old implementation that did not check for overflows. Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:145
Function
BenchmarkParseIntUnsafeSlower
Alternative implementation using unsafe and delegating to strconv.ParseInt Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:135
Function
BenchmarkSetLarge
Verifies: STK-REQ-005 MCDC STK-REQ-005: N/A reqproof:proptest:skip performance benchmark; measures wall-clock time and allocations, output is non-dete
benchmark/benchmark_set_test.go:12
Function
BenchmarkStringEnd_NoEscape_Long
(b *testing.B)
optimization_bench_test.go:30
Function
BenchmarkStringEnd_NoEscape_Short
============================================================================= Micro-benchmarks for the fast-path optimizations modeled on PR #285. Ea
optimization_bench_test.go:21
Function
BenchmarkStringEnd_WithEscape
(b *testing.B)
optimization_bench_test.go:40
Function
BenchmarkTokenEnd_Boolean
(b *testing.B)
optimization_bench_test.go:74
Function
BenchmarkTokenEnd_LongNumber
(b *testing.B)
optimization_bench_test.go:64
Function
BenchmarkTokenEnd_Number
--- tokenEnd --------------------------------------------------------------- Common case: a bare scalar value (number, boolean, null) terminated by a
optimization_bench_test.go:54
Function
BenchmarkUgirjiMedium
* github.com/ugorji/go/codec */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_medium_payload_test.go:474
Function
BenchmarkUgirjiSmall
* github.com/ugorji/go/codec */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 MCDC
benchmark/benchmark_small_payload_test.go:461
Function
BenchmarkUjsonMedium
* github.com/mreiferson/go-ujson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_medium_payload_test.go:410
Function
BenchmarkUjsonSmall
* github.com/mreiferson/go-ujson */ Verifies: STK-REQ-001 MCDC STK-REQ-001: N/A Verifies: STK-REQ-003 MCDC STK-REQ-003: N/A Verifies: STK-REQ-004 M
benchmark/benchmark_small_payload_test.go:413
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:282
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:622
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:786
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:948
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1357
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1637
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1841
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2024
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2237
Method
CodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2465
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:47
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:563
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:727
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:897
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1217
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1542
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1782
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1946
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2151
Method
CodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2370
← previous
next →
201–300 of 1,014, ranked by callers