Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/a8m/djson
/ functions
Functions
39 in github.com/a8m/djson
⨍
Functions
39
◇
Types & classes
4
↓ 24 callers
Method
error
emit sytax errors
decode.go:443
↓ 17 callers
Method
skipSpaces
returns the next char after white spaces
decode.go:428
↓ 8 callers
Method
DecodeObject
DecodeObject is the same as Decode but it returns map[string]interface{}. You should use it to parse JSON objects.
decode.go:95
↓ 8 callers
Method
next
next return the next byte in the input
decode.go:419
↓ 4 callers
Method
AllocString
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 callers
Method
Decode
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 callers
Method
any
any used to decode any valid JSON value, and returns an interface{} that holds the actual data
decode.go:127
↓ 3 callers
Function
Decode
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 callers
Function
NewDecoder
NewDecoder creates new Decoder from the JSON-encoded data
decode.go:18
↓ 3 callers
Method
array
array accept valid JSON array value
decode.go:321
↓ 3 callers
Method
object
object accept valid JSON array value
decode.go:360
↓ 2 callers
Function
getu4
getu4 decodes \uXXXX from the beginning of s, returning the hex value, or it returns -1.
bytes.go:143
↓ 2 callers
Method
number
number called by `any` after reading number between 0 to 9
decode.go:259
↓ 2 callers
Method
string
string called by `any` or `object`(for map keys) after reading `"`
decode.go:183
↓ 1 callers
Function
DecodeArray
DecodeArray is the same as Decode but it returns []interface{}. You should use it to parse JSON arrays.
interface.go:112
↓ 1 callers
Method
DecodeArray
DecodeArray is the same as Decode but it returns []interface{}. You should use it to parse JSON arrays.
decode.go:111
↓ 1 callers
Function
DecodeObject
DecodeObject is the same as Decode but it returns map[string]interface{}. You should use it to parse JSON objects.
interface.go:95
↓ 1 callers
Method
String
()
interface.go:21
↓ 1 callers
Function
Type
Type returns the JSON-type of the given value
interface.go:46
↓ 1 callers
Function
quoteChar
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 callers
Function
unquoteBytes
(s, b []byte)
bytes.go:27
Function
BenchmarkDJsonAllocString
(b *testing.B)
benchmark/benchmark_test.go:164
Function
BenchmarkDJsonParser
(b *testing.B)
benchmark/benchmark_test.go:144
Function
BenchmarkEncodingJsonParser
(b *testing.B)
benchmark/benchmark_test.go:15
Function
BenchmarkGabsParser
(b *testing.B)
benchmark/benchmark_test.go:104
Function
BenchmarkJasonParser
(b *testing.B)
benchmark/benchmark_test.go:64
Function
BenchmarkSimpleJsonParser
(b *testing.B)
benchmark/benchmark_test.go:84
Function
BenchmarkUJsonParser
(b *testing.B)
benchmark/benchmark_test.go:124
Function
BenchmarkUgorjiParser
(b *testing.B)
benchmark/benchmark_test.go:38
Method
Error
()
interface.go:9
Function
ExampleDecode
()
example_test.go:10
Function
ExampleDecodeArray
()
example_test.go:27
Function
ExampleDecodeObject
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
Function
ExampleDecoder_AllocString
()
example_test.go:85
Function
TestDecode
(t *testing.T)
decode_test.go:90
Function
TestDecodeArray
(t *testing.T)
decode_test.go:192
Function
TestDecodeObject
(t *testing.T)
decode_test.go:215
Function
TestType
(t *testing.T)
decode_test.go:238
Function
TestWithStdDecoder
(t *testing.T)
decode_test.go:177