MCPcopy Create free account

hub / github.com/a8m/djson / functions

Functions39 in github.com/a8m/djson

↓ 24 callersMethoderror
emit sytax errors
decode.go:443
↓ 17 callersMethodskipSpaces
returns the next char after white spaces
decode.go:428
↓ 8 callersMethodDecodeObject
DecodeObject is the same as Decode but it returns map[string]interface{}. You should use it to parse JSON objects.
decode.go:95
↓ 8 callersMethodnext
next return the next byte in the input
decode.go:419
↓ 4 callersMethodAllocString
AllocString pre-allocates a string version of the data before starting to decode the data. It is used to make the decode operation faster(see below) b
decode.go:61
↓ 4 callersMethodDecode
Decode parses the JSON-encoded data and returns an interface value. The interface value could be one of these: bool, for JSON booleans float64, for
decode.go:82
↓ 4 callersMethodany
any used to decode any valid JSON value, and returns an interface{} that holds the actual data
decode.go:127
↓ 3 callersFunctionDecode
Decode parses the JSON-encoded data and returns an interface value. The interface value could be one of these: bool, for JSON booleans float64, for
interface.go:81
↓ 3 callersFunctionNewDecoder
NewDecoder creates new Decoder from the JSON-encoded data
decode.go:18
↓ 3 callersMethodarray
array accept valid JSON array value
decode.go:321
↓ 3 callersMethodobject
object accept valid JSON array value
decode.go:360
↓ 2 callersFunctiongetu4
getu4 decodes \uXXXX from the beginning of s, returning the hex value, or it returns -1.
bytes.go:143
↓ 2 callersMethodnumber
number called by `any` after reading number between 0 to 9
decode.go:259
↓ 2 callersMethodstring
string called by `any` or `object`(for map keys) after reading `"`
decode.go:183
↓ 1 callersFunctionDecodeArray
DecodeArray is the same as Decode but it returns []interface{}. You should use it to parse JSON arrays.
interface.go:112
↓ 1 callersMethodDecodeArray
DecodeArray is the same as Decode but it returns []interface{}. You should use it to parse JSON arrays.
decode.go:111
↓ 1 callersFunctionDecodeObject
DecodeObject is the same as Decode but it returns map[string]interface{}. You should use it to parse JSON objects.
interface.go:95
↓ 1 callersMethodString
()
interface.go:21
↓ 1 callersFunctionType
Type returns the JSON-type of the given value
interface.go:46
↓ 1 callersFunctionquoteChar
Most of the code in this file copied from the Go standard library, encoding/json/decode.go quoteChar formats c as a quoted character literal
bytes.go:13
↓ 1 callersFunctionunquoteBytes
(s, b []byte)
bytes.go:27
FunctionBenchmarkDJsonAllocString
(b *testing.B)
benchmark/benchmark_test.go:164
FunctionBenchmarkDJsonParser
(b *testing.B)
benchmark/benchmark_test.go:144
FunctionBenchmarkEncodingJsonParser
(b *testing.B)
benchmark/benchmark_test.go:15
FunctionBenchmarkGabsParser
(b *testing.B)
benchmark/benchmark_test.go:104
FunctionBenchmarkJasonParser
(b *testing.B)
benchmark/benchmark_test.go:64
FunctionBenchmarkSimpleJsonParser
(b *testing.B)
benchmark/benchmark_test.go:84
FunctionBenchmarkUJsonParser
(b *testing.B)
benchmark/benchmark_test.go:124
FunctionBenchmarkUgorjiParser
(b *testing.B)
benchmark/benchmark_test.go:38
MethodError
()
interface.go:9
FunctionExampleDecode
()
example_test.go:10
FunctionExampleDecodeArray
()
example_test.go:27
FunctionExampleDecodeObject
Example that demonstrate the basic transformation I do on each incoming event. `lowerKeys` and `fixEncoding` are two generic methods, and they don't c
example_test.go:50
FunctionExampleDecoder_AllocString
()
example_test.go:85
FunctionTestDecode
(t *testing.T)
decode_test.go:90
FunctionTestDecodeArray
(t *testing.T)
decode_test.go:192
FunctionTestDecodeObject
(t *testing.T)
decode_test.go:215
FunctionTestType
(t *testing.T)
decode_test.go:238
FunctionTestWithStdDecoder
(t *testing.T)
decode_test.go:177