lua-users home
lua-l archive

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


  I've just released version 1.0.6 of org.conman.parsers.jsons [1], which
fixes a bug found by Dirk Laurie related to feeding data into the parser. 
This now works:

        json = require "org.conman.parsers.jsons"
        file = io.open("large-json-file.json","r")
        data = json:match(function() return file:read(1024) end)

  or even:

        data = json:match(function() return file:read(1) end)

  As before, the code can act as a drop-in replacement for
org.conman.parsers.json.

        json = require "org.conman.parsers.jsons"
        data = json:match(string_containing_json_data)

  -spc

[1]     1.0.5 was released that *mostly* fixed this bug.