dev | ||
json.lua | ||
.luacheckrc | ||
config.lua | ||
feature_overwrite.lua | ||
features.lua | ||
init.lua | ||
LICENSE | ||
mod.conf | ||
README.md | ||
screenshot.png | ||
settingtypes.txt | ||
setup.lua |
json_lua
Purpose
This mod is is a wrapper for json.lua, since it is faster and more independent from the MT functions minetest.parse_json and minetest.write_json
Download
Get the mod from https://gitea.your-land.de/your-land/json_lua
Source json.lua : https://github.com/aryajur/json.lua.git
This appears to be a maintained version, in contrast to many others. Original is here:
https://github.com/rxi/json.lua.git
Installation
Being a template, you shouldn't install the mod itself. Your mod could look like this:
Usage
This is a library.
Use json_lua.json.encode instead of minetest.parse_json and json_lua.json.decode instead of minetest.write_json
See README
Supported versions
All: There is no reason to assume this library would not run with next to any MT version
If you run json_lua, but something is wrong, please file a bug. PRs also welcome.
Uninstall
Remove it from your mod folder or deactivate it in your world.mt
Mods that depend on it will cease to work, if the mod is removed without proper replacement.
License
Original license: MIT Mod license: MIT