blob: 37f97d25f2b8963c6cb9780c69ae1c72be73fc44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
---[[
LuCI JSON-Library
@cstyle instance
]]
module "luci.json"
---[[
Directly decode a JSON string
@class function
@name decode
@param json JSON-String
@return Lua object
]]
---[[
Direcly encode a Lua object into a JSON string.
@class function
@name encode
@param obj Lua Object
@return JSON string
]]
---[[
Null replacement function
@class function
@name null
@return null
]]
---[[
Create a new JSON-Encoder.
@class function
@name Encoder
@param data Lua-Object to be encoded.
@param buffersize Blocksize of returned data source.
@param fastescape Use non-standard escaping (don't escape control chars)
@return JSON-Encoder
]]
---[[
Create an LTN12 source providing the encoded JSON-Data.
@class function
@name Encoder.source
@return LTN12 source
]]
---[[
Create a new JSON-Decoder.
@class function
@name Decoder
@param customnull Use luci.json.null instead of nil for decoding null
@return JSON-Decoder
]]
---[[
Create an LTN12 sink from the decoder object which accepts the JSON-Data.
@class function
@name Decoder.sink
@return LTN12 sink
]]
---[[
Get the decoded data packets after the rawdata has been sent to the sink.
@class function
@name Decoder.get
@return Decoded data
]]
---[[
Create a new Active JSON-Decoder.
@class function
@name ActiveDecoder
@param customnull Use luci.json.null instead of nil for decoding null
@return Active JSON-Decoder
]]
---[[
Fetches one JSON-object from given source
@class function
@name ActiveDecoder.get
@return Decoded object
]]
|