Go to file
2024-03-20 07:04:05 +01:00
dev Initial commit 2024-03-05 06:11:59 +00:00
json.lua First attempt 2024-03-20 03:50:19 +01:00
.luacheckrc Initial commit 2024-03-05 06:11:59 +00:00
config.lua First attempt 2024-03-20 03:50:19 +01:00
feature_overwrite.lua First attempt 2024-03-20 03:50:19 +01:00
features.lua First attempt 2024-03-20 03:50:19 +01:00
init.lua Remove disabled and not needed parts, small license fix 2024-03-20 07:04:05 +01:00
LICENSE Remove disabled and not needed parts, small license fix 2024-03-20 07:04:05 +01:00
mod.conf First attempt 2024-03-20 03:50:19 +01:00
README.md First attempt 2024-03-20 03:50:19 +01:00
screenshot.png Initial commit 2024-03-05 06:11:59 +00:00
settingtypes.txt First attempt 2024-03-20 03:50:19 +01:00
setup.lua First attempt 2024-03-20 03:50:19 +01:00

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

Thank you