summaryrefslogtreecommitdiff
path: root/lualibs-util-jsn.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-09 11:00:58 -0700
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-09 11:00:58 -0700
commitab9631db57206d97f308e0fb9b16a7a25c00bc41 (patch)
tree8f0a4101513c9b63c0928011dd6b3fff8f048768 /lualibs-util-jsn.lua
parent3ef211e80fa60887838bbc16e340733160c20ade (diff)
parente43ad352b065f3a45effa2bfc0e9f3c7e703cd64 (diff)
downloadlualibs-ab9631db57206d97f308e0fb9b16a7a25c00bc41.tar.gz
Merge pull request #8 from phi-gamma/master
sync with Context; merge util-jsn
Diffstat (limited to 'lualibs-util-jsn.lua')
-rw-r--r--lualibs-util-jsn.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/lualibs-util-jsn.lua b/lualibs-util-jsn.lua
index 7493f10..29587cd 100644
--- a/lualibs-util-jsn.lua
+++ b/lualibs-util-jsn.lua
@@ -11,6 +11,9 @@ if not modules then modules = { } end modules ['util-jsn'] = {
-- a correct stream. If not, we have some fatal error anyway. So, we can just rely
-- on strings being strings (apart from the unicode escape which is not in 5.1) and
-- as we first catch known types we just assume that anything else is a number.
+--
+-- Reminder for me: check usage in framework and extend when needed. Also document
+-- it in the cld lib documentation.
local P, V, R, S, C, Cc, Cs, Ct, Cf, Cg = lpeg.P, lpeg.V, lpeg.R, lpeg.S, lpeg.C, lpeg.Cc, lpeg.Cs, lpeg.Ct, lpeg.Cf, lpeg.Cg
local lpegmatch = lpeg.match
@@ -141,5 +144,3 @@ end
-- inspect(tmp)
-- inspect(json.tostring(true))
-
-return json