mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-08-28 23:01:37 +00:00
FIX - isolate custom app JSON payload
This commit is contained in:
@@ -24,10 +24,16 @@ Config = {
|
||||
}
|
||||
|
||||
json = {
|
||||
decode = function()
|
||||
decode = function(encoded)
|
||||
if encoded == "null" then
|
||||
return nil, 5
|
||||
end
|
||||
return {}
|
||||
end,
|
||||
encode = function()
|
||||
encode = function(value)
|
||||
if value == nil then
|
||||
return "null"
|
||||
end
|
||||
return "{}"
|
||||
end,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user