Module talk:JSON

Jump to navigation Jump to search


I would strongly advocate for renaming the functions from way too generic encode/decode to jsonEncode or json_encode or something like that.

Danny B. 11:01, 16 April 2013 (UTC)


How to test ? Lua error: Module:JSON:390: Unexpected character at Line 1 character 1: j (106) when reading object ({ or [ or ' or " or number or boolean or null expected) Context: jsonstring ^.

JSONView.render are writen for specific json rendering. It can show only double array json strings. In example:
{{#invoke:JSONView|render| [ ["jsonstring", "rez"] ] }}




--Vpovilaitis (talk) 05:20, 31 July 2014 (UTC)
for show all json rendering can use JSONView.renderAll, example:
{{#invoke:JSONView|renderAll| [ {"jsonstring":"rez"} ] }}


I must say: JSONView.renderAll don't show corectly all posible corect json. This is only example. --Vpovilaitis (talk) 05:41, 31 July 2014 (UTC)

Lua error in Module:JSON at line 386: attempt to get length of upvalue 'js_string' (a nil value).

--Shizhao (talk) 12:46, 16 January 2017 (UTC)