lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


LuaJSON Version 1.3 was just released.
Changed in this release: * A global 'nothrow' option was added to
change the behavior of parsingto not throw, but return `nil, error`. *
Error messages were enhanced for many cases to include betterdetails
as to why the parsing may have failed.Some examples follow:
For `[1i]`       unexpected character @ character: 3 0:3 [i] line:
  [1iFor `{x:1`       Unclosed elements present
 * Perhaps the largest and most important change in the release...
Theparser was unrolled so that LPeg was placed more into a lexer
rolerather than full-blown parser. This solves the problem of LPeg
runninginto problems in my parser due to unclosed choices at a
smallperformance cost.
Btw, a trick I found for github that I cannot seem documentation for...
You can transform the HTTPS download
URLhttps://github.com/downloads/harningt/luajson/luajson-1.3.tar.gz
==> to HTTP ==>http://cloud.github.com/downloads/harningt/luajson/luajson-1.3.tar.gz
to avoid SSL - which makes for convenient LuaRocks usage w/o
SSLsupport.  Basically  change https -> http and add a "cloud." in
frontof github.com
A link to the new rockspecs (since they would be too big to go through):
https://github.com/harningt/luajson/raw/b7cb1e6221ae6b70b208b242c1654da39087230d/rockspecs/luajson-1.3-1.rockspecandhttps://github.com/harningt/luajson/raw/b7cb1e6221ae6b70b208b242c1654da39087230d/rockspecs/luajson-scm-4.rockspec
-- 
Thomas Harning Jr.