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...
every language. (See Template:language data <span class="searchmatch">documentation</span> for an explanation of numbers 1 to 4.) {{#invoke:<span class="searchmatch">JSON</span> data|export_languages|TWO_LETTER}} This will...
Converts language data to <span class="searchmatch">JSON</span>. The data can be fetched using an expand templates API call, e.g. [1]...
{} 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)...
generated <span class="searchmatch">documentation</span> is located at the module page.) Module:scripts — script related code Module:scripts/data — script data module Module:<span class="searchmatch">JSON</span> data —...
{"param":"value","1":"parameter 1"}...
require("Module:<span class="searchmatch">JSON</span>").to<span class="searchmatch">JSON</span>(require("Module:languages/data/all")) end function export.export_families(frame) return require("Module:<span class="searchmatch">JSON</span>").to<span class="searchmatch">JSON</span>...
number of functions that are used to find languages. (The generated <span class="searchmatch">documentation</span> is located at the module page.) A Language object is returned from one...
local m_languages = require("Module:languages") local lang = m_languages.getByCode("grc") local <span class="searchmatch">json</span> = lang:to<span class="searchmatch">JSON</span>() return <span class="searchmatch">json</span> end return p...