我的一位同事将此文件发送给我,要求我将数据提取到数据库中......问题是,格式不正确。 (它应该是一个json文件...甚至作为orders.json发送。)
这是文件内容(其他文件要大得多,这只是一个片段):
[
"Buyer: Jane Doe ",
[
"jane Doe",
"Street Here",
"State, ZIP",
"Phone : 8888888"
],
"Ship By: Wed, Oct 11, 2017 to Thu, Oct 12, 2017",
"Deliver By: Mon, Oct 16, 2017 to Thu, Oct 19, 2017",
"Shipping Service: Standard",
[
[
"Product name",
"SKU: 99999999999",
"ASIN: 999999999",
"Condition: New",
"Listing ID: 99999999999",
"Order Item ID: 9999999999",
"Customizations:",
"Size: 16 Inches",
"Monogram Letters: BSA",
"Color: Unpainted (goes out in 48 hrs)"
]
],
"A",
"Wed, Oct 4, 2017, 8:03 PM PT",
"114-7275553-4341048",
[
"1"
]
]
我相信我必须慢慢地通过这个并使用不必要的方法让它看起来很漂亮并且工作......除非我遗漏了什么?
截至目前,我无法以有效的方式真正访问数据。