-- containing a <span class="searchmatch">JSON</span> representation of it. It's not intended to be very robust, -- but may be useful for prototyping. function p.<span class="searchmatch">json</span>ValueFromValue(val...
local function <span class="searchmatch">json</span>_fromBoolean(b) return b and "true" or "false" end -- Given a finite real number x, returns a string containing its <span class="searchmatch">JSON</span> -- representation...
converting Lua values into <span class="searchmatch">JSON</span> values (in UTF-8-encoded Lua strings). Unfortunately, Lua's data model differs somewhat from <span class="searchmatch">JSON's</span>, so it's not possible to...
objects into <span class="searchmatch">JSON</span> strings that are compliant with the <span class="searchmatch">JSON</span> standard (RFC 7159). It is not possible to perfectly convert Lua objects to <span class="searchmatch">JSON</span> in all cases...
{} function export.<span class="searchmatch">json</span>(frame) local raw = frame.args[1] -- local <span class="searchmatch">json</span> = mw.text.<span class="searchmatch">json</span>Decode(raw) -- return mw.dumpObject(<span class="searchmatch">json</span>) return mw.dumpObject(raw)...
if you need both the languages table and another table). Generating the <span class="searchmatch">JSON</span> data takes a few seconds and puts a relatively high strain on the servers...
Converts language data to <span class="searchmatch">JSON</span>. The data can be fetched using an expand templates API call, e.g. [1]...
invocation.") local lang = require("Module:languages").getByCode(langcode) or error("Language code not found") return lang:to<span class="searchmatch">JSON</span>() end return export...
byName = require("Module:languages/by name") return require("Module:<span class="searchmatch">JSON</span>").to<span class="searchmatch">JSON</span>(byName) end function export.AllCanonicalToCode() local byCanonicalName...
local export = {} function export.main(frame) return mw.text.nowiki(mw.text.<span class="searchmatch">json</span>Encode(frame.args)) end return export...