草庐IT

json - 使用 Go 正确解析 JSON 数据时出错

我是Go的新手,正在尝试使用github中的库将JSON解析为CSV。https://github.com/jehiah/json2csv但我遇到了这个问题:https://github.com/jehiah/json2csv/issues/22作者没有回复。我意识到,如果我们将以下JSON作为json.input提供给文件:{"user":{"name":["jehiah,mike,semo"],"password":"root"},"remote_ip":"127.0.0.1","dt":"[20/Aug/2010:01:12:44-0400]"}{"user":{"name":[