blob: f59421c7bf14e661e6e88096781617660dae236f [file] [log] [blame] [edit]
local io = require("io")
require("json")
local f = io.open("data.txt")
local data = f:read('*a')
f:close()
local opt = (...)
local strict = opt and opt:match('--strict')
local decode = json.decode.decode
for i = 1,1000 do
decode(data, strict)
end