17 lines
214 B
Text
17 lines
214 B
Text
|
cjson := import("cjson")
|
||
|
fmt := import("fmt")
|
||
|
fmt.println(cjson.__check())
|
||
|
|
||
|
dec := cjson.new_decoder("tests/data.cjson")
|
||
|
|
||
|
for {
|
||
|
v := dec.decode()
|
||
|
if is_error(v) {
|
||
|
break
|
||
|
}
|
||
|
if !v {
|
||
|
break
|
||
|
}
|
||
|
fmt.println(v)
|
||
|
}
|