aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2013-12-18 18:17:26 -0500
committerShadowNinja <shadowninja@minetest.net>2013-12-18 18:18:43 -0500
commite1f9ba435f8c0cca90f2d3df36e9aa82763e1da0 (patch)
treee4d84dc22aff5c8048083cbfab1d7c97da958728 /doc
parentba8fa0bd42b5a4a0e3658a5e784ee6a885dcc891 (diff)
downloadminetest-e1f9ba435f8c0cca90f2d3df36e9aa82763e1da0.tar.gz
minetest-e1f9ba435f8c0cca90f2d3df36e9aa82763e1da0.tar.bz2
minetest-e1f9ba435f8c0cca90f2d3df36e9aa82763e1da0.zip
Don't throw a error when writing JSON fails
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 135e2cfcd..eb6362b0b 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1531,7 +1531,7 @@ minetest.parse_json(string[, nullvalue]) -> something
^ On success returns a table, a string, a number, a boolean or nullvalue
^ On failure outputs an error message and returns nil
^ Example: parse_json("[10, {\"a\":false}]") -> {10, {a = false}}
-minetest.write_json(data[, styled]) -> string
+minetest.write_json(data[, styled]) -> string or nil and error message
^ Convert a Lua table into a JSON string
^ styled: Outputs in a human-readable format if this is set, defaults to false
^ Un-serializable things like functions and userdata are saved as null.