Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buger/jsonparser
/ functions
Functions
1,095 in github.com/buger/jsonparser
⨍
Functions
1,095
◇
Types & classes
38
↓ 2 callers
Function
WriteToBuffer
SYS-REQ-009
parser.go:1112
↓ 2 callers
Function
appendUnicodeEscape
appendUnicodeEscape appends a `\uXXXX` escape sequence for the given code point to buf. Does NOT validate cp — callers use it for both valid BMP code
json_fuzz_test.go:500
↓ 2 callers
Function
arrayEachErr
arrayEachErr also returns ArrayEach's closing-bracket offset for use by EachKeyErr while traversing array-index paths. SYS-REQ-004
parser.go:1640
↓ 2 callers
Function
assertBackingArrayUnchanged
(t *testing.T, input, snapshot []byte)
v131_regression_test.go:21
↓ 2 callers
Function
compareGetToOracle
compareGetToOracle compares jsonparser.Get's output to the expected Go value (the reference oracle's prediction). Returns true iff they agree.
reference_oracle_test.go:346
↓ 2 callers
Function
containerIs
============================================================================= Enhanced path-shape checker (catches nested D6 divergences) ============
json_fuzz_test.go:1000
↓ 2 callers
Function
containerStart
SYS-REQ-112
parser.go:2047
↓ 2 callers
Method
decSlicePtrtoCBAvatar
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2627
↓ 2 callers
Method
decSlicePtrtoDSTopic
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2729
↓ 2 callers
Method
decSlicePtrtoDSUser
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2831
↓ 2 callers
Function
genKeyPath
============================================================================= Adversarial key-path generator =========================================
json_fuzz_test.go:935
↓ 2 callers
Function
h2I
reqproof:lemma h2I_range func(c byte) bool { r := h2I(c) return r == -1 || (r >= 0 && r <= 15) } reqproof:lemma h2I_decimal_digit func(c byte) bool {
escape.go:60
↓ 2 callers
Function
hexDigit
hexDigit returns a single lowercase hexadecimal digit byte.
json_fuzz_test.go:485
↓ 2 callers
Function
inputWithSpareCapacity
(data string)
v131_regression_test.go:8
↓ 2 callers
Function
isContainerWhitespace
SYS-REQ-112
parser.go:2280
↓ 2 callers
Function
looksLikeJSON
============================================================================= The fuzzer (testing.F, native go-fuzz) =================================
json_fuzz_test.go:1480
↓ 2 callers
Function
oracleRandomJSONValue
oracleRandomJSONValue builds a random nested Go value suitable for json.Marshal. It is intentionally richer than property_test.go's generator: it emit
reference_oracle_test.go:163
↓ 2 callers
Function
parseFloat
(b *[]byte)
bytes_safe.go:16
↓ 2 callers
Function
pathShapeMatchesData
pathShapeMatchesData is a stricter version of pathShapeMatchesRoot that also verifies container-type compatibility at EVERY nesting level, not just th
json_fuzz_test.go:1023
↓ 2 callers
Function
pickAdversarialPath
pickAdversarialPath produces a path that may NOT exist in v, including out-of-range indices and empty components — exactly the inputs that exposed PR
reference_oracle_test.go:305
↓ 2 callers
Function
runEncodingJSONGates
============================================================================= Gate runner (runs Gates A–G on a single input) =========================
encoding_json_fuzz_test.go:627
↓ 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
scanContainerLen
SYS-REQ-112
parser.go:2069
↓ 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
testEachKeyPathDepth
(t *testing.T, depth int)
issues_56_107_229_test.go:101
↓ 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
Method
ArrayEach
ArrayEach iterates over the array at the compiled path. SYS-REQ-114
path_compiler.go:209
↓ 1 callers
Function
ArrayEachWildcard
ArrayEachWildcard iterates over an array addressed by keys. A terminal [*] component is accepted as an explicit request for all elements; without it,
wildcard.go:72
↓ 1 callers
Method
Delete
Delete removes the value at the compiled path. SYS-REQ-114
path_compiler.go:203
↓ 1 callers
Method
EachKey
EachKey resolves the compiled path using EachKey. SYS-REQ-114
path_compiler.go:215
↓ 1 callers
Function
EachKeyErr
EachKeyErr finds the requested paths and allows the callback to stop iteration by returning an error. io.EOF stops iteration gracefully. SYS-REQ-008
parser.go:747
↓ 1 callers
Function
FuzzTokenStart
SYS-REQ-001
fuzz.go:83
↓ 1 callers
Method
GetInt
GetInt resolves the compiled path and returns its integer value. SYS-REQ-114
path_compiler.go:190
↓ 1 callers
Function
GetUint64
GetUint64 returns the value retrieved by internalGet, cast to a uint64 if possible. Negative values and malformed integers return MalformedValueError;
parser.go:2014
↓ 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
Parts
Parts returns a copy of the compiled path components. SYS-REQ-114
path_compiler.go:222
↓ 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:489
↓ 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:516
↓ 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:1101
↓ 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
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
← previous
next →
101–200 of 1,095, ranked by callers