Sign in
nest-open-source
/
nest-learning-thermostat
/
5.1.7
/
luajson
/
refs/heads/master
/
.
/
luajson-1.2.1
/
tests
/
dataTest.lua
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