Imports System.Collections.Generic
Imports Newtonsoft.Json.Linq
Imports Newtonsoft.Json.Converters
Imports Newtonsoft.Json.Serialization
Public Property href As String
Public Property url2 as Url2
dim JSON as string = "{""url2"": {""href"": ""https://example.com/test2/""}}"
Dim objURL1 = Newtonsoft.Json.JsonConvert.DeserializeObject(Of Test1)(JSON)
dim href = objURL1.url2.href
dim JSON2 = Newtonsoft.Json.JsonConvert.SerializeObject(objURL1, Formatting.Indented)
Console.WriteLine("objURL1.url2.href:")
Console.WriteLine("Deserialized and re-serialized JSON:")