我有一个有效的JSON文件,我正在使用GUI直接将其上传到AWS S3的存储桶中。
[
{
"attribute1" : "foo1",
"attribute2" : 123,
"attribute3" : "bar1"
},
{
"attribute1" : "foo2",
"attribute2" : 123,
"attribute3" : "bar2"
}
]
当我使用“ AWS GUI选择(预览)”时,文件格式为JSON,JSON类型为JSON行,而Compression为None,则得到以下输出:
{
"_1": [
{
"attribute1" : "foo1",
"attribute2" : 123,
"attribute3" : "bar1"
},
{
"attribute1" : "foo2",
"attribute2" : 123,
"attribute3" : "bar2"
}
]
}
您是否知道S3为什么在我的JSON文件周围放置{“ _1”:}?
答案 0 :(得分:0)
如果您按照以下方式发送
{
"attribute1" : "foo1",
"attribute2" : 123,
"attribute3" : "bar1"
}
{
"attribute1" : "foo2",
"attribute2" : 123,
"attribute3" : "bar2"
}
您可以看到此s3 json查询
[
{
"attribute1" : "foo1",
"attribute2" : 123,
"attribute3" : "bar1"
},
{
"attribute1" : "foo2",
"attribute2" : 123,
"attribute3" : "bar2"
}
]
好〜