mrSkortch/MissionScriptingTools

LUA Tables to JSON

Opened this issue · 4 comments

Since JSON is a more common dataformat (generally speaking), is it possible to add export LUA table to JSON feature to MIST?

I've never used JSON and a quick search showed there are similarities between lua and json. There is a json library in the game but it appears to be utilized by the mission editor and is not accessible to the mission scripting environment. So I'd have to write my own or use someone else's encoder and put it directly in mist. For the sake of statement, if you are wanting to use a JSON table in an external program then you should be able to convert an exported lua table to JSON.

Plan was to import into MySql DB using REST/CRUD. I don't know LUA, but guess I can figure it out. I also believe you can use JSON in google maps. Thanks anyway!

Hi from a frenchie! ;)
I'm very interested to export databases into a MySQL table or export them into an html table. Stay tuned for issues.
@mrSkortch FYI I love your project! <3

I am already exporting deepcopy tables to JSON @baluballa , I know this is 10000 years old but its pretty easy to do.