Imports System.IO
Imports System.Text.Json
Module Module1
Sub Main()
Dim jsonString As String = "{""name"":""John"",""age"":30}"
Dim options As JsonSerializerOptions = New JsonSerializerOptions With {.PropertyNameCaseInsensitive = True}
Dim jsonObject = JsonSerializer.Deserialize(Of Dictionary(Of String, Object))(jsonString, options)
If jsonObject.ContainsKey("name") Then
Console.WriteLine("Name: " & jsonObject("name").ToString())
End If
If jsonObject.ContainsKey("age") Then
Console.WriteLine("Age: " & jsonObject("age").ToString())
End If
Console.ReadLine()
End Sub
End Module