Added checking for sparseness and mixed key types when encoding array

This commit is contained in:
rxi
2015-08-30 19:08:50 +01:00
parent 3845cef229
commit 70556ccea5
2 changed files with 15 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ A lightweight JSON library for Lua
* Implemented in pure Lua: works with 5.1, 5.2, 5.3 and JIT
* Fast: generally outperforms other pure Lua JSON implementations
([benchmark scripts](bench/))
* Tiny: around 280sloc, 8.5kb
* Tiny: around 290sloc, 9kb
* Proper error messages, *eg:* `expected '}' or ',' at line 203 col 30`