Editing Module:Process entire Ask query with format json
Revision as of 11:26, 28 November 2025 by Bmcfann (talk | contribs) (Created page with "local p = {} function p.processData(frame) local jsonString = frame.args.data local dataTable = mw.text.jsonDecode(jsonString) -- Now you can work with dataTable in Lua -- For example, iterate through the results: --local output = "" --for _, item in ipairs(dataTable.results) do -- output = output .. "City: " .. item.printouts.Population[1].fulltext .. ", Area: " .. item.printouts.Area[1].fulltext .. "\n" local vartype1 = type(jsonSt...")
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.