0

My Json String:

{"Result":[{"branch":"61","food":"Idli","food_photo":[255,216,255,22,....55,217],"preparation":"23","qty":"Pcs"}]}

My Quest:1)When i deserialize i got null food_photo in my list. 2)How to deserialize this json string into class in c#?

Narasi
  • 75
  • 1
  • 2
  • 13
  • How are you deserializing? What is the class definition? (Show us some code) – madth3 Nov 09 '12 at 07:25
  • public class Food { public int branch { get; set; } public string food { get; set; } public photo[] foo_photo { get; set; } public string preparation { get; set; } public string qty { get; set; } } public class photo { public byte[] food_photo { get; set; } } public class FooddtlResult { public Food[] Result { get; set; } } – Narasi Nov 09 '12 at 07:36

1 Answers1

0

Look at lots of similar questions on stackoverflow:

What is the simplest C# function to parse a JSON string into an object?

Deserialize JSON object to C# object

Community
  • 1
  • 1
Prashant Lakhlani
  • 5,758
  • 5
  • 25
  • 39