Parsing JSON

I have this JSON in string 'Data":

{"@context":"https:\\/\\/w3id.org\\/rdw\\/contexts\\/vehicles","@id":"","resource":{"@id":"#this","Aantalcilinders":4,"Aantalstaanplaatsen":null,"Aantalzitplaatsen":5,"BPM":1699,"Brandstofverbruikbuitenweg":3.1,"Brandstofverbruikgecombineerd":3.2,"Brandstofverbruikstad":3.5,"Catalogusprijs":28990,"Cilinderinhoud":1560,"CO2uitstootgecombineerd":82,"Datumaanvangtenaamstelling":"2016-02-24T00:00:00","DatumeersteafgifteNederland":"2015-12-03T00:00:00","Datumeerstetoelating":"2015-12-03T00:00:00","Eerstekleur":{"@id":"rdwv:Blue","label":"Blauw"},"G3installatie":null,"Handelsbenaming":{"@id":"http:\\/\\/dbpedia.org\\/resource\\/Peugeot_308","label":"Peugeot 308"},"Hoofdbrandstof":{"@id":"rdwv:Diesel","label":"Diesel"},"Inrichting":"MPV","Kenteken":"HN117H","Laadvermogen":null,"Massaleegvoertuig":1275,"Massarijklaar":1375,"Maximaleconstructiesnelheid":null,"Maximumtetrekkenmassaautonoomgeremd":null,"Maximumtetrekkenmassageremd":1300,"Maximumtetrekkenmassamiddenasgeremd":null,"Maximumtetrekkenmassaongeremd":680,"Maximumtetrekkenmassaopleggergeremd":null,"Merk":{"@id":"http:\\/\\/dbpedia.org\\/resource\\/Peugeot","label":"Peugeot"},"Milieuclassificatie":{"@id":"rdwv:Euro6","label":"Euro 6"},"Nevenbrandstof":null,"Retrofitroetfilter":false,"Toegestanemaximummassavoertuig":1870,"Tweedekleur":null,"Vermogen":88,"Vermogenbromsnorfiets":null,"VervaldatumAPK":"2018-12-03T00:00:00","Voertuigsoort":{"@id":"rdwv:PassengerVehicle","label":"Personenauto"},"Wachtopkeuren":false,"WAMverzekerdgeregistreerd":true,"Zuinigheidslabel":{"@id":"rdwv:EfficiencyLabelA","label":"A"}}}

I tried to convert this to a Dictionary:

Dim Info As Dictionary = Xojo.Data.ParseJSON(Data.ToText)

But I get a runtime error:

How to correct this?

Use the encodings to convert the data.

Dim Info As Dictionary = Xojo.Data.ParseJSON( Xojo.Core.TextEncoding.UTF8.ConvertDataToText( Data ) )

Hi Derk,

Ofcourse :(. Forgot about that. Thanks.