base: drops obsolute SCM rockspecs
[luajson.git] / tests / dataTest.lua
blobf59421c7bf14e661e6e88096781617660dae236f
1 local io = require("io")
2 require("json")
3 local f = io.open("data.txt")
4 local data = f:read('*a')
5 f:close()
6 local opt = (...)
7 local strict = opt and opt:match('--strict')
8 local decode = json.decode.decode
9 for i = 1,1000 do
10 decode(data, strict)
11 end