diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-09 19:54:14 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-05-09 19:54:14 +0200 |
commit | 665e041585120500b330d25868977964df07a2a9 (patch) | |
tree | 7af8f17e01bd2b14c1e58a5ba088663003fcc284 /lualibs-util-jsn.lua | |
parent | fdf45e87dea227d920698370657e62fdf3208579 (diff) | |
download | lualibs-665e041585120500b330d25868977964df07a2a9.tar.gz |
sync with context as of 2013-05-09
Diffstat (limited to 'lualibs-util-jsn.lua')
-rw-r--r-- | lualibs-util-jsn.lua | 5 |
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 |