我尝试将JSON
文件中的简单记录加载到配置单元表中,如下所示。每条JSON
记录都在单独的行中。
{"Industry":"Manufacturing","Phone":null,"Id":null,"type":"Account","Name":"Manufacturing"}
{"Industry":null,"Phone":"(738) 244-5566","Id":null,"type":"Account","Name":"Sales"}
{"Industry":"Government","Phone":null,"Id":null,"type":"Account","Name":"Kansas City Brewery & Co"}
但是我找不到任何可以将逗号分隔的记录serde
数组加载到配置单元表中。输入是一个包含记录的文件,如下所示...(,)
JSON
JSON
[{"Industry":"Manufacturing","Phone":null,"Id":null,"type":"Account","Name":"Manufacturing"},{"Industry":null,"Phone":"(738) 244-5566","Id":null,"type":"Account","Name":"Sales"},{"Industry":"Government","Phone":null,"Id":null,"type":"Account","Name":"Kansas City Brewery & Co"}]
有人可以建议我一个serde
可以解析这个JSON
文件的吗?
谢谢