Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
0 answers
238 views

invalid casting exception from datacontract json serializer

I am working on a project for Windows Phone 7.1 in Visual Studio 2010. I am trying to download JSON data and deserialize it into a list of objects. The following is the code I am using to build the ...
Matt's user avatar
  • 11
2 votes
0 answers
41 views

C# JSON Requests and Responses for Windows Phone 7.1 app

I'm trying to implement https://gist.github.com/jgable/881673 I have already posted my question there, could you please help me to get a result? The problem is that in private void Button_Click(...
magefi's user avatar
  • 21
0 votes
0 answers
923 views

Debugging Error with JSON de - serialization

I try to download data from my link and deserialize it. I tried to do this with JSON.Net, but i've got some error. I've created a struct which copies the struct of JSON data in my link. Help me. ...
Павел Лягушин's user avatar
0 votes
0 answers
138 views

HttpWebRequest(GET) works on emulator, doesn't work on device

I'm writing a little game for windows phone. It puts scores of everyone to mysql database(using php) and gets the best score. Everything works fine on the emulator, unfortunately it does not work on ...
Michał Żołnieruk's user avatar
0 votes
0 answers
107 views

Get request after a put or a post shows previous data instead of modified data?

The problem is that I do a GET request in the constructor(I call upon the method so every time that you enter the page the data is newly get from the database) and it gets the data from the database ...
user3210090's user avatar
0 votes
1 answer
2k views

converting from json to c# class object

I try to convert from json to c# class object, cause my final step will be put this all data into local db. I have no problem with taking this data like one big string, so the Url is good typed, but ...
MyWay's user avatar
  • 1,025
0 votes
1 answer
910 views

how to convert a string to json in c# for windows phone

I have a json string of format { "code": 0, "message": "success", "data": [ { "data": 10, "total": 1000 } ], "page": { "page": 1, "per_page": 200, } } I just tried ...
Aju's user avatar
  • 806
0 votes
2 answers
372 views

ListBox items TextBlock changes based on condition

I am getting data in JSON and storing in List by List<Product> rootObject = JsonConvert.DeserializeObject<List<Product>>(e.Result); and after that, I am displaying data in ListBox ...
user1629977's user avatar
0 votes
1 answer
2k views

RestSharp usage for sending and receiving data

I have successfully created my app and now want to connect it to a localhost to check the working of my app. I have been suggested to use restsharp for connecting to the server using php and json to ...
nik's user avatar
  • 586
1 vote
1 answer
380 views

JSON deserialize into object

I am trying to deserialize the following string { "city": [ { "city_id": "31", "City_Name": "Bergisch Gladbach", "City_Image": "http://beta.preis-ente....
Balraj Singh's user avatar
  • 3,471
1 vote
2 answers
2k views

How to send Json data in payload as Toast or Tile Notification in Windows Phone

I want to send Json data in payload as Toast or Tile Notification in Windows Phone as shown below: string msg = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<wp:Notification xmlns:...
Vivek's user avatar
  • 1,843
0 votes
1 answer
782 views

Passing data from listbox navigation Windows Phone

I'm getting data to create a Listbox like a blog with JSON from a webblog, I want to pass this data when you select one item, to another simple xaml page with the information of this news(Title, ...
croigsalvador's user avatar
1 vote
1 answer
360 views

How to extract json response in windows phone?

I have the following json response which i want to extract.I never used json concept before.Just want to know how can i extract the below json response using DataContractJsonSerializer so that i can ...
krrishna's user avatar
  • 2,078
2 votes
2 answers
328 views

Deserialize JSON object on windows phone

I need help with this: My JSON (It's from Diablo 3 API): { "name":"Exsanguinating Chopsword of Assault", "icon":"mightyweapon1h_202", "displayColor":"blue", "tooltipParams":"item-data/...
Adelmo Pereira's user avatar
3 votes
2 answers
15k views

JSON Can't be Deserialized to Object, Needs Array?

I am trying to take the incoming JSON items and bind them to listbox items but I am told by visual studio that I need to do an Array and not Object? I've never had to do this... Anyone know how? My ...
user1239234's user avatar
0 votes
2 answers
437 views

Retrieve JSON from a website (Windows phone 7)

I am developing an app that has foursquare in it. I am having problem in retrieving JSON from the website. How to do that in windows phone 7 ? The format of JSON is below: {"access_token":"...
900v3n's user avatar
  • 1
0 votes
4 answers
3k views

JSON Deserializing for Windows Phone

I am trying to deserialize the following JSON, but I really have no idea how to use JSON.net to do the work. I am using C# and JSON.Net library. My JSON is as follows: { "found": 3, "bounds":...
Alex's user avatar
  • 151
1 vote
2 answers
481 views

Serialization in Windows Phone 7

I'm writting a program in .Net for Windows Phone 7. I have a part code: public void deSerialize() { sr = new StreamReader(new IsolatedStorageFileStream("Data\\myFile.txt", FileMode.Open, ...
detrist's user avatar
  • 29
0 votes
1 answer
986 views

unable to display data from json webservice in listbox of windows phone 7.1 application

I am trying to consume the json webservice from my windows phone application and display the retrieved data on to the listbox. I am able to get the data from the webservice(in the e.result), However, ...
user1105705's user avatar
1 vote
2 answers
1k views

Parsing complex JSON

I want to parse a complex JSON on WP7. First I have to parse a JSON feed and I retrieve data to parse second JSON feed. To parse the first feed I use this web service http://horaires-ter-sncf....
Wafa Gheni's user avatar
3 votes
1 answer
4k views

How to parse JSON to a dynamic object on Windows Phone 7?

For web applications I can use System.Web and use this trick to convert JSON to a dynamic object. But for Windows Phone I can't use JavaScriptConverter. What is the workaround to convert JSON in a ...
BrunoLM's user avatar
  • 100k
3 votes
1 answer
799 views

DataContractJsonSerializer leaving quotes in strings

I am using the DataContractJsonSerializer on Windows Phone 7.1 (Mango RC) to pull data from a web service. The data from my web service looks like this: [ { "Color":"\"black\"", "...
Kevin Hoffman's user avatar