【发布时间】:2015-12-19 20:51:28
【问题描述】:
[
["Sender", "service@mydomain.com"],
["Date", "Sat, 19 Dec 201520:41:31 +0000"],
["X-Mailgun-Sid", "WyI0ZjRjNyIsICJyYWplZXZrbXh4eddHh4eDMzMzMzQHlhaG9vLmNvbSIsICJjNGExZiJd"],
["Received", "by luna.mailgun.net with HTTP; Sat, 19 Dec 2015 20:41:31+0000"],
["Message-Id", "<201512192024131.73374.12565@mydomain.com>"],
["Reply-To", "junky01@hotmail.com"],
["X-Mailgun-Skip-Verification", "false"],
["To", "John Myers <testxxxxxx33333@yahoo.com>"], ["From", "\"Inc.\" <service@mydomain.com>"],
["Subject", "Test subject"],
["Mime-Version", "1.0"],
["Content-Type",
["multipart/mixed", { "boundary": "e43d638b70f04a40889d14f4c8422953" } ]
]
]
使用 JObject (VB.net) 时,JObject.parse 会抛出此错误:
Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 2, position 2.---- at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader) at Newtonsoft.Json.Linq.JObject.Parse(String json)
但是当我将上面的字符串复制到在线 Json 查看器中时,它们似乎都解析得很好。
【问题讨论】: