xgoprev/tests/cjson.xgo

17 lines
214 B
Text
Raw Normal View History

2024-06-06 09:07:56 +03:00
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)
}