This commit is contained in:
2025-05-02 12:24:44 +02:00
commit 39e925cc1b
3238 changed files with 110472 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package.path = package.path .. ";luajson/?.lua"
local JSON = require"json"
local path_in = "/home/morr/Téléchargements/fvtt-RollTable-you-find-yourself-in-a-tavern-what-happens-next_.json"
local f1 = io.open(path_in, "r")
local strjson = f1:read("*a")
f1:close()
local tabData = JSON.decode(strjson)
local results = {}
for idx, res in pairs(tabData.results) do
results[res.range[1].."-"..res.range[2]] = res.text
end
local entries = JSON.encode(results)
print()
print()
print(entries)