How to analyze Json data with images in Windows Phone 8 from a URL? Dynamic data

advertisements

I am an android developer, i am new to windows phone development. I want to Parse a Json data form a URL the data may change as for the User Input this is my Json data

{
"request": "ok",
"query": {
    "result": [
        {
            "site": [
                {
                    "latest": [
                        {
                            "id": "2eaQy8Ow",
                            "data": "1/1/2014"
                        }
                    ],
                    "url": "http://www.shopclues.com/"
                }
            ],
            "model": "Nexus 10",
            "height": "8.89",
            "name": "The New Google (Samsung) Nexus 10 10-inch Andriod 4.2 (Jelly Bean) Tablet 16GB SSD 2560x1600 Pixel World Highest Resolution for 300 ppi WQXGA (WiFi Only) 2GB Ram Micro USB Micro HDMI Accelerometer Compass Ambient light Gyroscope Barometer GPS",
            "features": {
                "Hard Drive": "16 GB ssd",
                "Card Description": "GPU: Mali-T604",
                "Processor": "1.70 GHz Exynos 5000 Series"
            },
            "image": [
                "http://www.simplydecoded.com/wp-content/uploads/2013/02/Telangana2.jpg"
            ]
        }
    ]
}
}

To parse this Json in windows Phone 8 (C#), i followed these links

1. To parse json in windows phone 8

2. To Parse json data

But in windows phone Json Parsing some example are showing Given data only so i want it for Dynamic data

So my problem is that i already prepared a Android Application which looks like this this which is there in android.

So i want to prepare the same process in windows But its taking Only one Constant It should change dynamically..


If i understood you correctly, you want to: 1) Get data 2) Deserialize 3) Make ListBox automatticaly display info

You have to: 1) Create clases: You can use json2CSharp.com or just in VS2012 Edit-Paste-Paste Special - As JSON classes 2) In XAML write listBox items template with bindings to propertiec in your JSON classes ( anither big but WERY useful thing to learn ). 3) Deserialize JSON into the Top class object and then just do listbox.ItmesSource = and point to your array with deserialized data

You will bing images to URL and they will get downloaded and displayed automatically.