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
↓ 3 callers
Method
skipValue
SYS-REQ-116
reader_parser.go:457
↓ 3 callers
Function
wildcardIndex
SYS-REQ-113
wildcard.go:151
↓ 2 callers
Method
ArrayEach
ArrayEach incrementally iterates a root JSON array. Callback value slices are valid for the duration of the callback and must be copied if retained. M
reader_parser.go:116
↓ 2 callers
Method
ArrayEach
ArrayEach iterates over the addressed array using c's parsing options. SYS-REQ-115
config.go:79
↓ 2 callers
Method
Delete
Delete removes the value addressed by keys using c's parsing options. SYS-REQ-115
config.go:72
↓ 2 callers
Function
EachKeyWildcard
EachKeyWildcard resolves a path that may contain [*] components. A wildcard requires an array at that position and fans out over its elements before r
wildcard.go:15
↓ 2 callers
Function
FuzzDelete
SYS-REQ-010
fuzz.go:33
↓ 2 callers
Function
FuzzEachKey
SYS-REQ-008
fuzz.go:13
↓ 2 callers
Function
FuzzGetBoolean
SYS-REQ-005
fuzz.go:116
↓ 2 callers
Function
FuzzGetFloat
SYS-REQ-004
fuzz.go:98
↓ 2 callers
Function
FuzzGetInt
SYS-REQ-003
fuzz.go:107
↓ 2 callers
Function
FuzzGetString
SYS-REQ-002
fuzz.go:89
↓ 2 callers
Function
FuzzGetUnsafeString
SYS-REQ-011
fuzz.go:125
↓ 2 callers
Function
FuzzObjectEach
SYS-REQ-007
fuzz.go:48
↓ 2 callers
Function
FuzzParseBool
SYS-REQ-012
fuzz.go:74
↓ 2 callers
Function
FuzzParseFloat
SYS-REQ-013
fuzz.go:56
↓ 2 callers
Function
FuzzParseInt
SYS-REQ-015
fuzz.go:65
↓ 2 callers
Function
FuzzParseString
SYS-REQ-014
fuzz.go:4
↓ 2 callers
Function
FuzzSet
SYS-REQ-009
fuzz.go:39
↓ 2 callers
Function
SetWildcard
SetWildcard applies Set to every concrete path matched by [*]. Wildcards may appear at any array position and may be repeated. If a wildcard matches a
wildcard.go:90
↓ 2 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:61
↓ 2 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1242
↓ 2 callers
Method
UnmarshalJSONFFLexer
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1796
↓ 2 callers
Function
WriteToBuffer
SYS-REQ-009
parser.go:1168
↓ 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:1721
↓ 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:2139
↓ 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
findKeyStartConfig
SYS-REQ-115
parser.go:101
↓ 2 callers
Function
genKeyPath
============================================================================= Adversarial key-path generator =========================================
json_fuzz_test.go:935
↓ 2 callers
Function
getType
SYS-REQ-001, SYS-REQ-027
parser.go:1482
↓ 2 callers
Function
getTypeConfig
SYS-REQ-115
parser.go:1487
↓ 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 byt
escape.go:65
↓ 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:2372
↓ 2 callers
Function
looksLikeJSON
============================================================================= The fuzzer (testing.F, native go-fuzz) =================================
json_fuzz_test.go:1480
↓ 2 callers
Function
objectEachConfig
SYS-REQ-115
parser.go:1815
↓ 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:2161
↓ 2 callers
Method
scanValue
SYS-REQ-116
reader_parser.go:462
↓ 2 callers
Function
setConfig
SYS-REQ-115
parser.go:1346
↓ 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
unescapeToUTF8Config
SYS-REQ-115
escape.go:185
↓ 1 callers
Function
DeleteFound
DeleteFound removes the value addressed by keys and reports whether the value was found and removed. When found is false, result is data unchanged. SY
parser.go:1190
↓ 1 callers
Function
EachArray
SYS-REQ-006, SYS-REQ-028, SYS-REQ-029, SYS-REQ-052, SYS-REQ-053, SYS-REQ-055, SYS-REQ-083 EachArray is the canonical name; ArrayEach is kept for backw
aliases.go:5
↓ 1 callers
Function
EachArrayErr
SYS-REQ-004 EachArrayErr is the canonical name; ArrayEachErr is kept for backward compatibility.
aliases.go:17
↓ 1 callers
Function
EachArrayWildcard
SYS-REQ-113 EachArrayWildcard is the canonical name; ArrayEachWildcard is kept for backward compatibility.
aliases.go:23
↓ 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:803
↓ 1 callers
Function
EachObject
SYS-REQ-007, SYS-REQ-030, SYS-REQ-031, SYS-REQ-032, SYS-REQ-054, SYS-REQ-084 EachObject is the canonical name; ObjectEach is kept for backward compati
aliases.go:11
↓ 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:2106
↓ 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
ObjectEach
ObjectEach iterates over the addressed object using c's parsing options. SYS-REQ-115
config.go:85
↓ 1 callers
Method
Parts
Parts returns a copy of the compiled path components. SYS-REQ-114
path_compiler.go:222
↓ 1 callers
Method
Read
(p []byte)
reader_parser_test.go:254
↓ 1 callers
Method
String
Test helper for SYS-REQ-007.
parser_test.go:1759
↓ 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
← previous
next →
101–200 of 1,168, ranked by callers