Editing Module:JSONUtils
Revision as of 07:57, 2 May 2024 by Uschuetzenmeister (talk | contribs) (Created page with "local JSONUtils = {} local json = require('json') function JSONUtils.parse(jsonStr) -- JSON-String in Lua-Tabelle konvertieren local data = json.parse(jsonStr) -- Durch die Daten iterieren und sie ausgeben for _, item in ipairs(data) do -- Pagetitle ausgeben print(item.pagetitle) -- Daten ausgeben for _, class in ipairs(item.data.classes) do print('Class Name: ' .. class['class name']) for _, subClass in ipairs(class['su...")
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.
Retrieved from "https://visualdata.idea-sketch.com/wiki/Module:JSONUtils"