Question is in the title, really. I’m wondering which specific JSON library Corona includes as part of the core package.
I understood the question and don’t remember the answer (once knew this), but if you were asking because you need a JSON libray that you can modify or enhance you can use this:
Found it: dkjson 2.5-1
Not sure where they are pulling the source from, but here is one possible place:
https://luarocks.org/modules/luarocks/dkjson/2.5-1
local json = require "json" table.dump(json)
table.dump from https://roaminggamer.github.io/RGDocs/pages/SSK2/extensions/#table-debug-features
Awesome! Thank you.
Having just read the source page I do feel this snippet should be included in the Corona API docs…
“you should be aware that not every Lua table can be represented by the JSON standard. For example tables that contain both string keys and an array part cannot be exactly represented by JSON.”
I understood the question and don’t remember the answer (once knew this), but if you were asking because you need a JSON libray that you can modify or enhance you can use this:
Found it: dkjson 2.5-1
Not sure where they are pulling the source from, but here is one possible place:
https://luarocks.org/modules/luarocks/dkjson/2.5-1
local json = require "json" table.dump(json)
table.dump from https://roaminggamer.github.io/RGDocs/pages/SSK2/extensions/#table-debug-features
Awesome! Thank you.
Having just read the source page I do feel this snippet should be included in the Corona API docs…
“you should be aware that not every Lua table can be represented by the JSON standard. For example tables that contain both string keys and an array part cannot be exactly represented by JSON.”