function loadDKJSON(sID) local env = setmetatable({}, {__index=function(o, k) return _G[k] end }) return assert(loadSnippet(sID, env))() end json = loadDKJSON('#44') print(json.encode{'hello', 'world'}) print(json.encode{a='hello', b=2}) t = json.decode('["hello","world"]') print(t[1], t[2])
works!! :)
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
ID | Author/Program | Comment | Date | |
---|---|---|---|---|
638 | #1000610 | Edit suggestion: !636 !629 main { static Object androidContext; static String programID; public static void main(String[] args) throws Exception { function loadDKJSON(sID) local env = setmetatable({}, {__index=function(o, k) return _G[k] end }) return assert(loadSnippet(sID, env))() end json = loadDKJSON('#44') print(json.encode{'hello', 'world'}) print(json.encode{a='hello', b=2}) t = json.decode('["hello","world"]') print(t[1], t[2]) }} | 2015-08-19 01:45:38 | delete |
636 | #1000604 (pitcher) | 2015-08-18 00:07:22 |
Recognizer | Recognition Result | Visualize | Recalc |
---|---|---|---|
#308 | 308 | [visualize] |