' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
﻿Imports System
Imports System.Collections.Generic
Imports System.IO

Imports Newtonsoft.Json
Imports Newtonsoft.Json.Linq

Namespace E
    Public Class Program
        Public Shared Sub Main(args As String())
            Dim all As JArray = DirectCast(JsonConvert.DeserializeObject(File.ReadAllText("\work\e.json")), JArray)
            For Each one As JObject In all
                Console.WriteLine("**** start object ****")
                Console.WriteLine("ClassName = {0}", one.Value(Of String)("ClassName"))
                Console.WriteLine("mDecalSize = {0}", one.Value(Of String)("mDecalSize"))
                Console.WriteLine("mPingColor = {0}", one.Value(Of String)("mPingColor"))
            Next
        End Sub
    End Class
End Namespace
