xgoprev/tests/cjson.xgo
2024-06-06 11:07:56 +05:00

16 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)
}