Module:JSON/sandbox: Difference between revisions

From Guild of Archivists
m (1 revision imported)
 
(No difference)

Latest revision as of 07:26, 30 October 2015

Documentation for this module may be created at Module:JSON/sandbox/doc

-- For unit tests, see [[Module:Bananas/testcases]]
local json = require('Module:JSON')
local p = {}
local test = {}
 
function p.hello()
	test = json.decode('{\'Hello\':\'测试\'}');
 
	return test['Hello']
end
 
return p