Simple JSON parse example wanted in VB.Net

I'm doing my first steps with Newtonsoft Json parser, but there are very fex examples on apperently. I just want to parse a string, and then I want to be able to loop throught the different list

This is my code :

Dim JSON As String
Dim values As Newtonsoft.Json.Linq.JObject
JSON = "{'mailadresses': {    'List1':{'Stefaan Somers': '',          'Markske': ''       }, 'List2':{'Stefaan XSomers': '',         'xMarkske': ''       }}"
values = JObject.Parse(JSON)

It directly gives me the error when running : Unexpected end of content while loading JObject. Path 'mailadresses', line 1, position 221.

Any idea also on how to loop through the different elements. I don't want to cast to a custom class, as described in many samples


Your json isnt valid according to jsonlint.

try this instead:

    "mailadresses": {
        "List1": {
            "StefaanSomers": "",
            "Markske": ""
        "List2": {
            "StefaanXSomers": "",
            "xMarkske": ""

Need Your Help

How do I use boost::signals to implement the observer pattern?

c++ boost observer-pattern boost-bind boost-signals2

I have an application consisting of many linked objects, each of which have parameters that they need in order to function. I am using the context pattern so that each object sets its own parameters

add Delete button at last column in gridview gridview

I am adding columns on grid-view dynamically

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.