@Tomas You can save a file with a .json extension, so I assume that is what the programmer is referring to (you are correct that it is essentially a text file containing JSON data).
@universalenglishinchina - if the programmer genuinely believes reinstalling is the only way to work around changes to the JSON data, then it sounds like your programmer is not very experienced.
My guess would be that the programmer is turning the JSON data into a Lua table, and every time they make changes to the overall structure of that table the easiest thing to do is to ask you to reinstall. If the app is still in an early stage of development then this is not a problem - if I’m honest I sometimes do the same myself. If the app is released, then you are correct that this is not suitable.
The programmer should add some Lua code to the app to check the structure of the JSON data, and if it does not match the expected structure then it should be adjusted in the Lua code accordingly and then re-saved.
E.g. - initial json data
--myJsonFile.json {myvariable = "hello"} --myLuaFile.lua local mydata = json.decode("myJsonFile.json") local variable1 = mydata.myvariable --this is ok
Then the file is changed to:
--myJsonFile.json {myvariable1 = "hello", myvariable2 = "world"} --myLuaFile.lua local mydata = json.decode("myJsonFile.json") local variable1 = mydata.myvariable --this is no longer ok --should instead be something like this to account for the change: if mydata.myvariable then variable1 = mydata.myvariable elseif mydata.myvariable1 then variable1 = mydata.myvariable1 else variable1 = "" end