All Questions
Tagged with windows-phone-7.1 json
22 questions
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 ...
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(...
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.
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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:...
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, ...
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 ...
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/...
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 ...
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":"...
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":...
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, ...
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, ...
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....
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 ...
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\"",
"...