From f875b2079dd2929a9ecd3ea17bb343b9ad4c79e8 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Fri, 9 Sep 2022 14:47:41 +0200 Subject: [PATCH] Docs: Compare JSON module against MT's JSON --- doc/json.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 doc/json.md diff --git a/doc/json.md b/doc/json.md new file mode 100644 index 0000000..1c2969b --- /dev/null +++ b/doc/json.md @@ -0,0 +1,9 @@ +# JSON + +Advantages over `minetest.write_json`/`minetest.parse_json`: + +* Twice as fast in most benchmarks (for pre-5.6 at least) +* Uses streams instead of strings +* Customizable +* Useful error messages +* Pure Lua