[img]http://anyhub.net/file/1AKj-wtf.png[/img]
It's time for a new thread, as the infamous florian cruelly closed the first one, putting an end to it's miserable life.
[b]What should I do here ?[/b]
- Ask questions
- Answer questions
- Debate about answers
- Do not start a goddamned flamewar
I'll start with a small question then.
I have a json file which looks like this:
[code]
{
"Block":
{
"Name": "Wood",
"ID": 17
},
"Block":
{
"Name": "Rock",
"ID": 42
}
}
[/code]
Any (easy) way to Deserialize each one of these Blocks to a Block class and add it to a List<Block> ? It works when I just deserialize to a single Block, but as soon as I want to get two, it simple doesn't deserialize anything.