repo.or.cz
/
luajson.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
travis: synchronizes with moteus/lua-travis-example to fix LuaJIT builds
[luajson.git]
/
tests
/
dataTest.lua
blob
f59421c7bf14e661e6e88096781617660dae236f
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