Add 'minetest.write_json'