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
Function
FuzzDeleteNative
Verifies: SYS-REQ-035
fuzz_native_test.go:113
Function
FuzzEachKeyNative
Verifies: SYS-REQ-008
fuzz_native_test.go:129
Function
FuzzEncodingJSON
============================================================================= The fuzzer (testing.F, native go-fuzz) =================================
encoding_json_fuzz_test.go:653
Function
FuzzGetBooleanNative
Verifies: SYS-REQ-005
fuzz_native_test.go:209
Function
FuzzGetFloatNative
Verifies: SYS-REQ-004
fuzz_native_test.go:193
Function
FuzzGetIntNative
Verifies: SYS-REQ-003
fuzz_native_test.go:201
Function
FuzzGetStringNative
Verifies: SYS-REQ-002
fuzz_native_test.go:185
Function
FuzzGetUnsafeStringNative
Verifies: SYS-REQ-011
fuzz_native_test.go:217
Function
FuzzJSONStructureAware
FuzzJSONStructureAware is the structure-aware fuzzer. It combines: - Grammar-based JSON generation (always emits valid structures). - JSON-aware mutat
json_fuzz_test.go:1509
Function
FuzzObjectEachNative
Verifies: SYS-REQ-007
fuzz_native_test.go:145
Function
FuzzParseBoolNative
Verifies: SYS-REQ-012
fuzz_native_test.go:169
Function
FuzzParseFloatNative
Verifies: SYS-REQ-013
fuzz_native_test.go:153
Function
FuzzParseIntNative
Verifies: SYS-REQ-015
fuzz_native_test.go:161
Function
FuzzParseStringNative
Verifies: SYS-REQ-014
fuzz_native_test.go:121
Function
FuzzPathMutation
FuzzPathMutation mutates BOTH the JSON bytes and the key-path bytes, then exercises the full parser surface. This is the harness that would have caugh
path_fuzz_test.go:165
Function
FuzzSequence
FuzzSequence runs multi-operation sequences against a single JSON document. Verifies: SYS-REQ-035 (no-panic on sequences of operations). reqproof:pro
path_fuzz_test.go:541
Function
FuzzSetNative
Verifies: SYS-REQ-009
fuzz_native_test.go:137
Function
FuzzTokenStartNative
Verifies: SYS-REQ-001
fuzz_native_test.go:177
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:95
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:178
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:232
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:366
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:458
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:504
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:550
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:625
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:671
Method
MarshalEasyJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_easyjson.go:781
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:16
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:209
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:406
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:671
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:864
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1191
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1437
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1751
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:1944
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2271
Method
MarshalJSON
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_ffjson.go:2603
Function
StringToBytes
(s string)
bytes_unsafe.go:36
Function
TestAdditionalFuzzHarnessCoverage
Verifies: SYS-REQ-002 [fuzz] MCDC SYS-REQ-002: N/A Verifies: SYS-REQ-003 [fuzz] MCDC SYS-REQ-003: N/A Verifies: SYS-REQ-004 [fuzz] MCDC SYS-REQ-004: N
mcdc_supplement_test.go:439
Function
TestArrayEach
Verifies: SYS-REQ-006 [example] STK-REQ-004:AC-1:acceptance MCDC SYS-REQ-006: addressed_array_is_empty=F, addressed_array_is_well_formed=T, array_call
parser_test.go:1634
Function
TestArrayEachCallbackErrorNotSwallowed
Verifies: SYS-REQ-052 [boundary] MCDC SYS-REQ-052: array_callback_returns_error=T, array_callback_error_is_propagated=F => FALSE
deep_spec_test.go:1165
Function
TestArrayEachCallbackReceivesElementError
Verifies: SYS-REQ-052 [malformed] MCDC SYS-REQ-052: array_callback_returns_error=T, array_callback_error_is_propagated=T => TRUE
deep_spec_test.go:1136
Function
TestArrayEachEmpty
Verifies: SYS-REQ-028 [boundary] MCDC SYS-REQ-028: addressed_array_is_empty=T, addressed_array_is_well_formed=T, empty_array_produces_no_callbacks=T =
parser_test.go:1718
Function
TestArrayEachErrorPropagation
============================================================================= ArrayEach error propagation and truncation (SYS-REQ-052, SYS-REQ-053, SY
deep_spec_test.go:394
Function
TestArrayEachMalformedDelimiter
Verifies: SYS-REQ-055 [malformed] ArrayEach with malformed delimiter between elements shall return MalformedArrayError.
deep_spec_test.go:432
Function
TestArrayEachNonArrayRootNoCallback_SYS029
Verifies: SYS-REQ-029 [malformed_input] SYS-REQ-029:malformed_input:negative SYS-REQ-029:non_array_root_no_callback:negative Negative witness: ArrayEa
parser_test.go:2539
Function
TestArrayEachSupplementalErrors
Verifies: SYS-REQ-006 [malformed] MCDC SYS-REQ-006: N/A
mcdc_supplement_test.go:241
Function
TestArrayEachTruncatedAtValueBoundary
============================================================================= ArrayEach truncated at value boundary (SYS-REQ-083) ====================
deep_spec_test.go:840
Function
TestArrayEachTruncatedMidElement
Verifies: SYS-REQ-053 [malformed] ArrayEach on truncated mid-element shall return error, not panic.
deep_spec_test.go:404
Function
TestArrayEachWithWhiteSpace
Verifies: SYS-REQ-029 [boundary] MCDC SYS-REQ-029: addressed_array_is_well_formed=F, malformed_array_input_returns_error=T => TRUE
parser_test.go:1666
Function
TestArrayEach_OOB_MalformedElements
ArrayEach infinite loop guard: verify o==0 catches all no-progress cases Verifies: SYS-REQ-006 [boundary]
dead_code_audit_oob_test.go:88
Function
TestArrayOutOfBounds
Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:194
Function
TestBackslashAtEnd
Verifies: SYS-REQ-063 [malformed] Backslash at end of string shall return MalformedValueError.
deep_spec_test.go:659
Function
TestBlockEndSentinel
Verifies: SYS-REQ-046 [boundary] blockEnd returns -1 when no matching closing bracket/brace found.
deep_spec_test.go:159
Function
TestBytesParseInt
Verifies: SYS-REQ-015 [boundary] MCDC SYS-REQ-015: N/A
bytes_test.go:109
Function
TestCodeMCDC_ArrayEachNoError
Verifies: SYS-REQ-006 [boundary] Code MC/DC gap: parser.go:1081 ArrayEach e != nil (FALSE branch) Normal iteration where Get returns no error has e ==
mcdc_supplement_test.go:648
Function
TestCodeMCDC_ArrayEachNormalIteration
Verifies: SYS-REQ-006 [boundary] Code MC/DC gap: parser.go:1073 ArrayEach o == 0 (FALSE branch) and parser.go:1077 ArrayEach t != NotExist (TRUE branc
mcdc_supplement_test.go:629
Function
TestCodeMCDC_CalcAllocateSpaceEmptyKey
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:140
Function
TestCodeMCDC_CreateInsertComponentEmptyKey
----------------------------------------------------------------------------- createInsertComponent / calcAllocateSpace — direct call to drive the `le
mcdc_code_supplement_test.go:129
Function
TestCodeMCDC_DeleteArrayElifMCDC
Verifies: SYS-REQ-035 [boundary] Code MC/DC gap: parser.go:801 Delete data[endOffset+tokEnd] == ']' && data[tokStart] == ',' Full MC/DC for the array-
mcdc_supplement_test.go:877
Function
TestCodeMCDC_DeleteArrayFirstElement
Verifies: SYS-REQ-035 [boundary] Code MC/DC gap: parser.go:800 Delete data[endOffset+tokEnd] == ']' Drive data[endOffset+tokEnd] == ']' to FALSE in th
mcdc_supplement_test.go:681
Function
TestCodeMCDC_DeleteConjunctionFullMCDC
============================================================================= Code MC/DC gap closure tests — round 2 (100% target) ===================
mcdc_supplement_test.go:780
Function
TestCodeMCDC_DeleteSpaceBeforeComma
Verifies: SYS-REQ-035 [boundary] Code MC/DC gap: parser.go:778 Delete space-comma handling Drive the case where data[endOffset+tokEnd] == ' ' and len(
mcdc_supplement_test.go:740
Function
TestCodeMCDC_DeleteTrailingCommaRemoval
============================================================================= Code MC/DC gap closure tests ===========================================
mcdc_supplement_test.go:499
Function
TestCodeMCDC_EachKeyLoopBound
Verifies: SYS-REQ-008 [boundary] Code MC/DC gap: parser.go:497 EachKey i < ln Normal EachKey iteration has i < ln TRUE.
mcdc_supplement_test.go:758
Function
TestCodeMCDC_EachKeyNonObjectUnmatchedValue
Verifies: SYS-REQ-008 [boundary] Code MC/DC gap: parser.go:491 EachKey data[i] == '{' Drive data[i] == '{' to FALSE after an unmatched key. This happe
mcdc_supplement_test.go:570
Function
TestCodeMCDC_FindKeyStartArrayRoot
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:61 findKeyStart ln > 0 with data[i] == '[' Drive the branch where data starts with '[' (arr
mcdc_supplement_test.go:666
Function
TestCodeMCDC_GetTypeTokenEndNotNegative
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:945 getType end == -1 Drive end == -1 to FALSE. tokenEnd returns -1 only when the data is e
mcdc_supplement_test.go:599
Function
TestCodeMCDC_LastTokenCarriageReturn
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:70
Function
TestCodeMCDC_LastTokenNewline
----------------------------------------------------------------------------- lastToken / tokenStart / tokenEnd — drive each whitespace branch. `lastT
mcdc_code_supplement_test.go:61
Function
TestCodeMCDC_LastTokenSpace
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:84
Function
TestCodeMCDC_LastTokenTab
Verifies: SYS-REQ-009 [mcdc]
mcdc_code_supplement_test.go:77
Function
TestCodeMCDC_ObjectEachLoopEntry
Verifies: SYS-REQ-007 [boundary] Code MC/DC gap: parser.go:1138 ObjectEach offset < len(data) Normal ObjectEach iteration has offset < len(data) TRUE.
mcdc_supplement_test.go:721
Function
TestCodeMCDC_SearchKeysArrayKeyNotBracket
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:327 searchKeys keys[level][0] != '[' Drive keys[level][0] != '[' to TRUE independently. Use
mcdc_supplement_test.go:840
Function
TestCodeMCDC_SearchKeysArrayKeyValidation
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:325 searchKeys Drive keyLen >= 3 so the second and third terms of the disjunction (keys[lev
mcdc_supplement_test.go:524
Function
TestCodeMCDC_SearchKeysKeyLevelMatch
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:287 searchKeys keyLevel == level-1 Drive keyLevel == level-1 to TRUE. This happens during n
mcdc_supplement_test.go:552
Function
TestCodeMCDC_SearchKeysKeyLevelMismatch
Verifies: SYS-REQ-001 [boundary] Code MC/DC gap: parser.go:289 searchKeys keyLevel == level-1 Drive keyLevel != level-1 (FALSE branch). Use duplicate
mcdc_supplement_test.go:821
Function
TestCodeMCDC_TokenEndDirect
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:45
Function
TestCodeMCDC_TokenEndTab
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:115
Function
TestCodeMCDC_TokenStartCarriageReturn
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:101
Function
TestCodeMCDC_TokenStartDirect
============================================================================= Code-level MC/DC supplement tests. =====================================
mcdc_code_supplement_test.go:24
Function
TestCodeMCDC_TokenStartNewline
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:92
Function
TestCodeMCDC_TokenStartTab
Verifies: SYS-REQ-001 [mcdc]
mcdc_code_supplement_test.go:108
Function
TestCodeMCDC_UnescapeLoopEntry
Verifies: SYS-REQ-014 [boundary] Code MC/DC gap: escape.go:149 Unescape for len(in) > 0 Drive the loop body. A string with an escape sequence enters t
mcdc_supplement_test.go:698
Function
TestDecodeSingleUnicodeEscape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:76
Function
TestDecodeUnicodeEscape
Verifies: SYS-REQ-014 [malformed] MCDC SYS-REQ-014: N/A
escape_test.go:93
Function
TestDelete
Verifies: SYS-REQ-010 [example] STK-REQ-005:AC-2:acceptance MCDC SYS-REQ-010: delete_path_is_provided=F, delete_returns_empty_document_without_path=T
parser_test.go:1358
Function
TestDeleteEmptyKeyPathComponent
============================================================================= Delete — empty key component leaves the payload unchanged, no panic (SYS
empty_key_path_test.go:219
Function
TestDeleteErrorPropagation
Verifies: SYS-REQ-049 [malformed] Delete where internalGet returns an error shall return original input unchanged.
deep_spec_test.go:230
Function
TestDeleteMalformedJSONRegression_SYS_REQ_010
TestDeleteMalformedJSONRegression_SYS_REQ_010 is the Go-level witness for SYS-REQ-010's malformed_input obligation. The four FuzzPathMutation corpus s
set_spec_test.go:171
Function
TestDeleteNoPath
============================================================================= Delete no-path edge case ===============================================
deep_spec_test.go:1126
Function
TestDeleteSupplementalEdgeCases
Verifies: SYS-REQ-035 [boundary] MCDC SYS-REQ-035: delete_path_is_provided=T, delete_input_is_unusable_for_requested_path=T, delete_returns_original_i
mcdc_supplement_test.go:314
Function
TestDeleteTruncatedArrayInput
Verifies: SYS-REQ-050 [malformed] Delete with array-element path on truncated array input shall return original input unchanged and shall not panic.
deep_spec_test.go:261
Function
TestDeleteTruncatedAtValueBoundary
============================================================================= Delete truncation tests (SYS-REQ-048, SYS-REQ-049, SYS-REQ-050, SYS-REQ-
deep_spec_test.go:200
Function
TestDeleteTruncatedMidStructure
Verifies: SYS-REQ-056 [malformed] Delete on mid-structure truncation shall return original input and not panic.
deep_spec_test.go:289
Function
TestDoSPerformance
TestDoSPerformance is a non-fuzz regression gate that asserts the parser completes each major operation on a 1MB input within dosOpBudget. Catches O(n
json_fuzz_test.go:1644
Function
TestEachKey
Verifies: SYS-REQ-008 [example] STK-REQ-004:AC-3:acceptance MCDC SYS-REQ-008: eachkey_callback_receives_found_values=F, eachkey_completes_requested_sc
parser_test.go:1997
Function
TestEachKeyArray
check having a bunch of keys in a super deep array Verifies: SYS-REQ-008 [boundary] MCDC SYS-REQ-008: N/A
parser_error_test.go:149
← previous
next →
301–400 of 1,014, ranked by callers