How to retrieve a JSON parameter started with a dollar sign in VB.NET?

Viewed 25

I am parsing a long JSON file and inside the subnodes I have a structure similar to this:

{
    "$code": "126",
    "Description": "Some description",
}

The problem is the dollar sign. I can easily retrieve the Description value but not the $code. This is my code:

Dim desc as string
Dim code as string
For Each objDetail As Detailing In MainNode
   desc = objDetail.Description
   code = objDetail.$code 'It won't work
Next

Any idea?

0 Answers
Related