在.NET / WPF通用JSON解析器? [英] Generic JSON parser in .NET / WPF?
问题描述
我看过很多的教程就如何反序列化一个JSON对象,以特定的使用DataContractJsonSerializer的对象。不过,我想我的反序列化对象到词典由是字符串,数组或字典,如System.Json不使用Silverlight,当我说JsonObject.Parse(myJSONstring)的。
I've read lots of tutorials on how to deserialize a JSON object to an object of a particular using DataContractJsonSerializer. However, I'd like to deserialize my object to a Dictionary consisting of either Strings, Arrays or Dictionaries, such as System.Json does with SilverLight when I say JsonObject.Parse(myJSONstring).
有一个相当于System.Json我可以在我的WPF项目中使用?
Is there an equivalent to System.Json that I can use in my WPF project?
(只有很短的背景:我取有办法很多信息JSON对象,我只是想用一点点地填写一个String数组)
(just a short background: I'm fetching JSON objects that have way to much info, and I just want to use a little bit to fill out a String array)
干杯
聂
推荐答案
看看在C#部分的 http://json.org/ ,他们有序列化和解析,应该帮助的几种实现。
Take a look at the C# section (scoll to the bottom) of http://json.org/, they have several implementations of serializers and parsers that should help.
这篇关于在.NET / WPF通用JSON解析器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!