I'm working in WP7. I need to parse JSON array value in to list box. Somebody said, use Serializer and Deserializer but i dont know how to parse those values in to combo box or list box using serilizer and deserializer?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
I would suggest using JSON.NET - I've used that with no problems in Windows Phone 7.
Don't focus on the list box to start with - focus on converting from JSON to your own type. Then separately deal with how to show a collection of objects of that type in your list box.
Here's an example using the
DataContractJsonSerializer
. However, for improved performance you should consider using Json.Net.You could then iterate over the items in your object and add them to the listbox.