MCPcopy Create free account

hub / github.com/buger/jsonparser / functions

Functions1,168 in github.com/buger/jsonparser

↓ 1 callersFunctiontoStringArray
Test helper for SYS-REQ-006 and SYS-REQ-008.
parser_test.go:24
↓ 1 callersFunctiontruncateForName
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
↓ 1 callersFunctionunescapeToUTF8
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:180
↓ 1 callersFunctionvalidContainerPrimitive
SYS-REQ-112
parser.go:2377
↓ 1 callersFunctionvalidJSONNumber
SYS-REQ-112
parser.go:2392
↓ 1 callersFunctionvalueTypeError
SYS-REQ-116
reader_parser.go:684
MethodArrayEach
ArrayEach iterates over the array at the compiled path. SYS-REQ-114
path_compiler.go:209
FunctionBenchmarkBytesEqualStrSafe
Alternative implementation without using unsafe Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:67
FunctionBenchmarkBytesEqualStrUnsafeSlower
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
FunctionBenchmarkDeleteLarge
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
FunctionBenchmarkDeleteNested
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
FunctionBenchmarkDeleteSmall
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
FunctionBenchmarkDjsonLarge
* 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
FunctionBenchmarkDjsonMedium
* 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
FunctionBenchmarkDjsonSmall
* 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
FunctionBenchmarkEasyJsonLarge
* 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
FunctionBenchmarkEasyJsonMedium
* 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
FunctionBenchmarkEasyJsonSmall
* 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
FunctionBenchmarkEncodingJsonInterfaceLarge
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
FunctionBenchmarkEncodingJsonInterfaceMedium
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
FunctionBenchmarkEncodingJsonInterfaceSmall
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
FunctionBenchmarkEncodingJsonStructLarge
* 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
FunctionBenchmarkEncodingJsonStructMedium
* 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
FunctionBenchmarkEncodingJsonStructSmall
* 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
FunctionBenchmarkEqualStr
Verifies: SYS-REQ-001 MCDC SYS-REQ-001: N/A
bytes_unsafe_test.go:58
FunctionBenchmarkFFJsonLarge
* 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
FunctionBenchmarkFFJsonMedium
* 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
FunctionBenchmarkFFJsonSmall
* 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
FunctionBenchmarkGabsMedium
* 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
FunctionBenchmarkGabsSmall
* 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
FunctionBenchmarkGet_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
FunctionBenchmarkGoSimpleJsonMedium
* 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
FunctionBenchmarkGoSimplejsonSetSmall
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
FunctionBenchmarkGoSimplejsonSmall
* 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
FunctionBenchmarkJasonMedium
* 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
FunctionBenchmarkJasonSmall
* 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
FunctionBenchmarkJsonParserDelSmall
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
FunctionBenchmarkJsonParserDeleteMedium
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
FunctionBenchmarkJsonParserEachKeyManualMedium
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
FunctionBenchmarkJsonParserEachKeyManualSmall
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
FunctionBenchmarkJsonParserEachKeyStructMedium
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
FunctionBenchmarkJsonParserEachKeyStructSmall
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
FunctionBenchmarkJsonParserLarge
* 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
FunctionBenchmarkJsonParserMedium
* 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
FunctionBenchmarkJsonParserObjectEachStructMedium
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
FunctionBenchmarkJsonParserObjectEachStructSmall
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
FunctionBenchmarkJsonParserSetSmall
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
FunctionBenchmarkJsonParserSmall
* 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
FunctionBenchmarkParseInt
Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:125
FunctionBenchmarkParseIntOverflows
Old implementation that did not check for overflows. Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:145
FunctionBenchmarkParseIntUnsafeSlower
Alternative implementation using unsafe and delegating to strconv.ParseInt Verifies: SYS-REQ-015 [example] MCDC SYS-REQ-015: N/A
bytes_test.go:135
FunctionBenchmarkParsePath
(b *testing.B)
path_compiler_test.go:292
FunctionBenchmarkSet
BenchmarkSet models Set's former incrementally-grown bytes.Buffer. Verifies: SYS-REQ-009 (Set)
issues_56_107_229_test.go:205
FunctionBenchmarkSetLarge
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
FunctionBenchmarkSetPreAllocated
BenchmarkSetPreAllocated measures Set's calcAllocateSpace-backed component construction. Verifies: SYS-REQ-009 (Set)
issues_56_107_229_test.go:223
FunctionBenchmarkStringEnd_NoEscape_Long
(b *testing.B)
optimization_bench_test.go:30
FunctionBenchmarkStringEnd_NoEscape_Short
============================================================================= Micro-benchmarks for the fast-path optimizations modeled on PR #285. Ea
optimization_bench_test.go:21
FunctionBenchmarkStringEnd_WithEscape
(b *testing.B)
optimization_bench_test.go:40
FunctionBenchmarkTokenEnd_Boolean
(b *testing.B)
optimization_bench_test.go:74
FunctionBenchmarkTokenEnd_LongNumber
(b *testing.B)
optimization_bench_test.go:64
FunctionBenchmarkTokenEnd_Number
--- tokenEnd --------------------------------------------------------------- Common case: a bare scalar value (number, boolean, null) terminated by a
optimization_bench_test.go:54
FunctionBenchmarkUgirjiMedium
* 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
FunctionBenchmarkUgirjiSmall
* 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
FunctionBenchmarkUjsonMedium
* 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
FunctionBenchmarkUjsonSmall
* 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
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:282
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:622
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:786
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:948
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1357
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1637
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1841
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2024
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2237
MethodCodecDecodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2465
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:47
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:563
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:727
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:897
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1217
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1542
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1782
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:1946
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2151
MethodCodecEncodeSelf
Benchmark harness support for STK-REQ-004.
benchmark/benchmark_codecgen.go:2370
MethodDelete
Delete removes the value at the compiled path. SYS-REQ-114
path_compiler.go:203
FunctionFuzzDeleteNative
Verifies: SYS-REQ-035
fuzz_native_test.go:113
FunctionFuzzEachKeyNative
Verifies: SYS-REQ-008
fuzz_native_test.go:129
FunctionFuzzEncodingJSON
============================================================================= The fuzzer (testing.F, native go-fuzz) =================================
encoding_json_fuzz_test.go:653
FunctionFuzzGetBooleanNative
Verifies: SYS-REQ-005
fuzz_native_test.go:209
FunctionFuzzGetFloatNative
Verifies: SYS-REQ-004
fuzz_native_test.go:193
FunctionFuzzGetIntNative
Verifies: SYS-REQ-003
fuzz_native_test.go:201
FunctionFuzzGetStringNative
Verifies: SYS-REQ-002
fuzz_native_test.go:185
FunctionFuzzGetUnsafeStringNative
Verifies: SYS-REQ-011
fuzz_native_test.go:217
FunctionFuzzJSONStructureAware
FuzzJSONStructureAware is the structure-aware fuzzer. It combines: - Grammar-based JSON generation (always emits valid structures). - JSON-aware mutat
json_fuzz_test.go:1509
FunctionFuzzObjectEachNative
Verifies: SYS-REQ-007
fuzz_native_test.go:145
FunctionFuzzParseBoolNative
Verifies: SYS-REQ-012
fuzz_native_test.go:169
FunctionFuzzParseFloatNative
Verifies: SYS-REQ-013
fuzz_native_test.go:153
FunctionFuzzParseIntNative
Verifies: SYS-REQ-015
fuzz_native_test.go:161
FunctionFuzzParseStringNative
Verifies: SYS-REQ-014
fuzz_native_test.go:121
← previousnext →301–400 of 1,168, ranked by callers