Module:Illegal-json-parse-demo

From Bonkipedia
Revision as of 22:39, 28 July 2019 by [[mw:]]>קיפודנחש (test)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Illegal-json-parse-demo/doc

local function demo_relaxed_parse()
	local tab = mw.text.jsonDecode('[6,7,8,]')
	return mw.text.jsonEncode(tab)
end

return { ['demo'] = demo_relaxed_parse }