os := import("os") fmt := import("fmt") sjson := import("cjson") dec := cjson.new_decoder("") //file_path := args[0] n := 0 for { v := dec.decode() if !v {break} n++ fmt.println(n) } fmt.println(n)