Commit Graph

23 Commits (ea2f97e9ed8317dc9a62e45d9a807dca7e3700a5)

Author SHA1 Message Date
Matthew Wild d4daf40caa util.json: Accept empty arrays with whitespace (fixes #1782) 3 years ago
Kim Alvefur 43531740f9 util: Prefix module imports with prosody namespace 3 years ago
Matthew Wild 809db57f68 util.json: Use util.iterators.sorted_pairs() in ordered mode 7 years ago
Matthew Wild 14b0dd8bdf util.json: Unescape surrogate pairs 8 years ago
Kim Alvefur 1438a38845 util: Various minor changes to please [luacheck] 8 years ago
Matthew Wild bd3767353f util.json: Variable renaming to avoid shadowing [luacheck] 10 years ago
Matthew Wild 8967760df5 net.websocket.frames, util.datetime, util.json, util.prosodyctl, util.rfc6724: Remove unused variables [luacheck] 10 years ago
Matthew Wild df618247d3 util.json: Fix encoding of json.null (bug introduced in bf1f09a5bcf7) 10 years ago
Kim Alvefur 2114d7e5d8 util.json: Remove use of newproxy 11 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Waqas Hussain d960ec8fb7 util.json: New, faster, stricter, more compliant JSON decoder. Now returns nil,err instead of throwing errors on invalid input. 13 years ago
Waqas Hussain 39229adf0b util.json: Make setmetatable local. 13 years ago
Waqas Hussain eed78bab7e util.json: Fix variable name typo which broke util.json when util.array was missing. 13 years ago
Waqas Hussain 8098be4eb1 util.json: Optimize long string parsing. 13 years ago
Waqas Hussain 0cba3cd260 util.json: New, improved, fixed codepoint to UTF-8 conversion. 13 years ago
Waqas Hussain 8cf79c1fbe util.json: Make encode(decode("[]"))=="[]". 13 years ago
Matthew Wild d64f65005c util.json: Convert \uXXXX to UTF-8 when decoding 13 years ago
Matthew Wild 533a5899e3 util.json: Add json.encode_array() (thanks B) 13 years ago
Waqas Hussain d59d8e6325 util.json: Added function encode_ordered(object). 14 years ago
Waqas Hussain d79def083b util.json: Added function encode_ordered(object). 14 years ago
Matthew Wild 383eb2f3bf util.json: Fix for single-line comments (thanks Norbert Kiesel) 14 years ago
Waqas Hussain 82573c9d23 util.json: Initial commit. 15 years ago
Waqas Hussain e1ba26dafe util.json: Fixed handling of truncated JSON. 15 years ago
Waqas Hussain b40e6b9dd9 util.json: Fixed a parse error caused by unexpected whitespace. 15 years ago
Waqas Hussain 75e3837663 util.json: Initial commit. 15 years ago