hi Rob, so im enjoying your “loadsave” code that you’ve given us…many thanks!
im just curious if this can be used to save tables too??
for example
myTable.color = “blue”
–this works well, very easy… but…how bout this
myTable.manycolors = {“blue”,“red”,“black”,“cyan”}
–if it does, kindly show us an example how to load the contents of the table…im pretty noob so plss bear with me. i’ve tried this but dont seem to work
–here’s what i did to test if it can save tables–
myTable.manycolors = {“blue”,“red”,“black”,“cyan”}
loadsave.saveTable(myTable,“myTable.json”)
–so i load the saved datas—
myTable = loadsave.loadTable(“myTable.json”)
for i=1, #myTable.manycolors do
print(myTable.manycolors[i])
end
— unfortunately, it doesnt load the values that i expect
thanks ROB!
