summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/util-jsn.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-12-14 19:36:30 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-12-14 19:36:30 +0100
commit19750b667c23a9f276032837d6c517063376bd0c (patch)
treefa92ece037f551b13b1ac73c59efa4b22b74b49b /tex/context/base/mkiv/util-jsn.lua
parentfe714093ebb95e4a870282782e2124cff2e546e5 (diff)
downloadcontext-19750b667c23a9f276032837d6c517063376bd0c.tar.gz
2021-12-14 19:19:00
Diffstat (limited to 'tex/context/base/mkiv/util-jsn.lua')
-rw-r--r--tex/context/base/mkiv/util-jsn.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/tex/context/base/mkiv/util-jsn.lua b/tex/context/base/mkiv/util-jsn.lua
index 8da351897..c1048b00a 100644
--- a/tex/context/base/mkiv/util-jsn.lua
+++ b/tex/context/base/mkiv/util-jsn.lua
@@ -17,6 +17,10 @@ if not modules then modules = { } end modules ['util-jsn'] = {
--
-- Upgraded for handling the somewhat more fax server templates.
+if utilities and utilities.json then
+ return json
+end
+
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
local format, gsub = string.format, string.gsub
@@ -440,4 +444,8 @@ end
-- inspect(l)
-- print(s==l.s)
+-- if not package.loaded.json then
+-- package.loaded.json = json
+-- end
+
return json