diff options
author | Matthew Wild <mwild1@gmail.com> | 2016-03-04 22:28:15 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2016-03-04 22:28:15 +0000 |
commit | 3e0686f349b7aea1478bf54dc3ec1ab403ab8c2f (patch) | |
tree | 3a2a3a3b984030b3f04665ea994437f9c09addf4 /util | |
parent | ae606b2cdfedf41a2b6f8fd5e90fe5ddac3892e4 (diff) | |
parent | df618247d3fb899b69668dfcc084a154e04c34c6 (diff) | |
download | prosody-3e0686f349b7aea1478bf54dc3ec1ab403ab8c2f.tar.gz prosody-3e0686f349b7aea1478bf54dc3ec1ab403ab8c2f.zip |
Merge 0.10->trunk
Diffstat (limited to 'util')
-rw-r--r-- | util/json.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/json.lua b/util/json.lua index becd295d..2c598446 100644 --- a/util/json.lua +++ b/util/json.lua @@ -145,7 +145,9 @@ end function simplesave(o, buffer) local t = type(o); - if t == "number" then + if o == null then + t_insert(buffer, "null"); + elseif t == "number" then t_insert(buffer, tostring(o)); elseif t == "string" then stringsave(o, buffer); |