[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua interface standards
- From: Martin <eden_martin_fuhrspam@...>
- Date: Sun, 23 Apr 2017 09:32:19 -0700
I appreciate this idea to standartize interfaces for common tasks.
Just wrote dummy JSON codec although useless, may illustrates idea:
--[[
Absolutely correct implementation for decoding and encoding
JSON with contents "{}".
Conforms community JSON codec standard.
]]
return
{
decode =
function(s)
return {}
end,
encode =
function(t)
return '{}'
end,
null = {}, -- used as GUID for JSON "null"
}
-- Martin