What is the best way to convert a (properly Json-formatted) String
object into a System.Json.JsonObject
? Right now I create a StringReader
and use System.Json.JsonObject.Load
.
(This is really kind of academic, since I think I'll always be dealing with the raw Json in System.IO.Stream
form.)
您可以简单地使用System.Json.JsonValue.Parse
静态方法直接解析字符串,而不是使用StringReader
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.