• What Do You Need Help With ? - Version 2
    2 replies, posted
[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.
You're 3 hours late. [url]http://www.facepunch.com/threads/1053117-What-do-you-need-help-with-v2[/url]
[QUOTE=PiXeN;27646468][code] { "Block": { "Name": "Wood", "ID": 17 }, "Block": { "Name": "Rock", "ID": 42 } } [/code][/QUOTE] Er.. [code] [ { "Name": "Wood", "ID": 17 }, { "Name": "Rock", "ID": 42 } ] [/code] ?
Sorry, you need to Log In to post a reply to this thread.