Module:Jf-JSON/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Jf-JSON
This module is used in MediaWiki:Gadget-libSensitiveIPs.js. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this module's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this module. Please discuss any changes on the talk page before implementing them. |
This is Jeffrey Friedl's JSON.lua library, copied from http://regex.info/blog/lua/json (source code). It is licensed under CC-BY 3.0.
The suggested loading code of JSON = assert(loadfile "JSON.lua")()
will not work in Scribunto. Instead, load the module as follows:
local JSON = require('Module:jf-JSON')
You can then use the module as documented in the module comments.