json4lua
json4lua copied to clipboard
JSON (Javascript Object Notation - http://www.json.org) encoding / decoding module for Lua, and very basic JSON RPC module (requiring socket 2.0).Module requires compat-5.1 if using Lua 5.0.This repos...
I believe that 'object' variable was not initialized here, being declared in Lua global scope. Is it right? By the way, thanks for developing this module!
I was running luacheck on json.lua and it found a few minor things. The important one is that json.lua had: ``` return decode(s, decode_scanComment(s,startPos)) ``` but there is no decode()...
lua 5.1, 5.2 % lua ../examples/tests.lua "Test\u00A7\\"" Test§\" four true two 2 three three one 1 lua5.2: ../examples/tests.lua:190: assertion failed! stack traceback: [C]: in function 'assert' ../examples/tests.lua:190: in function 'testJSON4Lua'...
I'm new to Lua. Please be gentle. I have attempted to use the RPC functionality json4lua module but found that it is completely unusable as is. I have fixed all...
Pretty-printing features can be enabled with new options parameter. Supported options are "pretty" (spaces after separators), "indent", and "sort_keys"; inspired by Python's json.dump options. Update README and tests for new...
Fix spelling; fix invalid JSON in README; remove incorrectly set Unix execute permissions.
About 4x faster. Also fixed some Lua 5.0 compat stuff.