Prepare FR module for v8
This commit is contained in:
@ -29,8 +29,25 @@ table.sort(todisplay, function (a, b)
|
||||
return a.tag < b.tag
|
||||
end
|
||||
)
|
||||
|
||||
for _, tagDef in pairs(todisplay) do
|
||||
print('"'.. tagDef.tag ..'":"'.. tagDef.value..'",')
|
||||
if type(tagDef.value) == "table" then
|
||||
print('"'.. tagDef.tag ..'":{')
|
||||
for k, v in pairs(tagDef.value) do
|
||||
if type(v) == "table" then
|
||||
print('"'.. k ..'":{')
|
||||
for kk, vv in pairs(v) do
|
||||
print('"'.. kk ..'":"'.. vv..'",')
|
||||
end
|
||||
print('},')
|
||||
else
|
||||
print('"'.. k ..'":"'.. v..'",')
|
||||
end
|
||||
end
|
||||
print('},')
|
||||
else
|
||||
print('"'.. tagDef.tag ..'":"'.. tagDef.value..'",')
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user