Module:Jf-JSON/doc: Difference between revisions

Content deleted Content added
KolbertBot (talk | contribs)
m Bot: HTTP→HTTPS (v477)
 
(6 intermediate revisions by 4 users not shown)
Line 1:
{{used in system|in [[MediaWiki:Gadget-libSensitiveIPs.js]]}}
 
This is Jeffrey Friedl's JSON.lua library, copied from http://regex.info/blog/lua/json ([http://regex.info/code/JSON.lua source code]). It is licensed under [https://creativecommons.org/licenses/by/3.0/deed.en_US CC-BY 3.0].
 
The suggested loading code of <code>JSON = assert(loadfile "JSON.lua")()</code> will not work in Scribunto. Instead, load the module as follows:
 
<sourcesyntaxhighlight lang="lua">
local JSON = require('Module:jf-JSON')
</syntaxhighlight>
</source>
 
You can then use the module as documented in the module comments.
Line 12 ⟶ 14:
<!-- Categories below this line, please; interwikis at Wikidata -->
 
}}</includeonly><noinclude>
[[Category:Module documentation pages]]
</noinclude>