Commit graph

23 commits

Author SHA1 Message Date
Kim Alvefur
43531740f9 util: Prefix module imports with prosody namespace 2023-03-17 16:23:16 +01:00
Matthew Wild
d4daf40caa util.json: Accept empty arrays with whitespace (fixes #1782) 2022-11-04 12:26:10 +00:00
Matthew Wild
809db57f68 util.json: Use util.iterators.sorted_pairs() in ordered mode 2018-09-21 14:35:35 +01:00
Matthew Wild
14b0dd8bdf util.json: Unescape surrogate pairs 2018-03-27 13:44:40 +01:00
Kim Alvefur
1438a38845 util: Various minor changes to please [luacheck] 2017-11-10 05:42:32 +01:00
Matthew Wild
bd3767353f util.json: Variable renaming to avoid shadowing [luacheck] 2016-03-10 17:53:17 +00:00
Matthew Wild
8967760df5 net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck] 2016-03-10 17:52:03 +00:00
Matthew Wild
df618247d3 util.json: Fix encoding of json.null (bug introduced in bf1f09a5bcf7) 2016-03-04 22:27:04 +00:00
Kim Alvefur
2114d7e5d8 util.json: Remove use of newproxy 2015-03-13 21:11:33 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Waqas Hussain
d960ec8fb7 util.json: New, faster, stricter, more compliant JSON decoder. Now returns nil,err instead of throwing errors on invalid input. 2013-05-07 10:42:44 -04:00
Waqas Hussain
39229adf0b util.json: Make setmetatable local. 2013-05-06 19:43:59 -04:00
Waqas Hussain
eed78bab7e util.json: Fix variable name typo which broke util.json when util.array was missing. 2013-05-06 19:42:54 -04:00
Waqas Hussain
8098be4eb1 util.json: Optimize long string parsing. 2013-05-05 15:02:33 -04:00
Waqas Hussain
0cba3cd260 util.json: New, improved, fixed codepoint to UTF-8 conversion. 2013-04-23 15:55:49 -04:00
Waqas Hussain
8cf79c1fbe util.json: Make encode(decode("[]"))=="[]". 2013-04-23 14:41:52 -04:00
Matthew Wild
d64f65005c util.json: Convert \uXXXX to UTF-8 when decoding 2013-04-06 12:20:31 +01:00
Matthew Wild
533a5899e3 util.json: Add json.encode_array() (thanks B) 2013-03-28 09:31:07 -04:00
Waqas Hussain
d59d8e6325 util.json: Added function encode_ordered(object). 2012-01-18 08:54:26 +05:00
Matthew Wild
383eb2f3bf util.json: Fix for single-line comments (thanks Norbert Kiesel) 2011-10-26 18:55:06 -04:00
Waqas Hussain
e1ba26dafe util.json: Fixed handling of truncated JSON. 2011-06-02 05:36:15 +05:00
Waqas Hussain
b40e6b9dd9 util.json: Fixed a parse error caused by unexpected whitespace. 2011-02-19 06:47:32 +05:00
Waqas Hussain
75e3837663 util.json: Initial commit. 2010-12-27 19:37:04 +05:00