我有一个有效的JSON文件,我正在使用GUI直接将其上传到AWS S3中的存储桶。
[
{
"attribute1" : "foo1",
"attribute2" : 123,
"attribute3" : "bar1"
},
{
"attribute1" : "foo2",
"attribute2" : 123,
"attribute3" : "bar2"
}
]
[当我使用AWS GUI Select(从(预览版)进行设置)文件格式= JSON,JSON类型= JSON行且Compression =无时,我得到以下输出:
{
"_1": [
{
"attribute1" : "foo1",
"attribute2" : 123,
"attribute3" : "bar1"
},
{
"attribute1" : "foo2",
"attribute2" : 123,
"attribute3" : "bar2"
}
]
}
您是否知道S3为什么将{“ _1”:}放在我的JSON文件周围?
如果您按以下方式发送
{
"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"
}
]
好〜