summaryrefslogtreecommitdiff
path: root/tex/context/base/util-jsn.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-05-09 16:40:24 +0300
committerMarius <mariausol@gmail.com>2013-05-09 16:40:24 +0300
commit2b86b3c259cdb4df4fda41889ecad9d3f366c973 (patch)
tree28cb7e5a0e41eabb797e94b53d53ff5e0a294d82 /tex/context/base/util-jsn.lua
parentfcc0b3c67c2840d82aee0bb84eac8b3449b09afd (diff)
downloadcontext-2b86b3c259cdb4df4fda41889ecad9d3f366c973.tar.gz
beta 2013.05.09 15:23
Diffstat (limited to 'tex/context/base/util-jsn.lua')
-rw-r--r--tex/context/base/util-jsn.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/tex/context/base/util-jsn.lua b/tex/context/base/util-jsn.lua
index 7493f108d..29587cd38 100644
--- a/tex/context/base/util-jsn.lua
+++ b/tex/context/base/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