Nested Array

Help
2009-07-13
2013-04-26
  • Abbas Riazi

    Abbas Riazi - 2009-07-13

    How we can use library to handle nested arrays/lists?
    Any hints, helps?

    Best regards,
    A. Riazi

     
    • Jeremy

      Jeremy - 2009-08-31

      This should help out a bit :)

      VB.NET

      Imports System.Net.Json
      Dim obj As JsonObjectCollection = JS.Parse(m)
      Dim JS As JsonTextParser = New JsonTextParser()
      For Each field As JsonObject In obj
           MsgBox(field.Name + " = " + field.GetValue())
      Next

      C#

      using System.Net.Json;
      JsonTextParser parser = new JsonTextParser();
      JsonObject obj = parser.Parse(jsonText);
      foreach (JsonObject field in obj as JsonObjectCollection)
      {
        string name = field.Name;
        string value = field.GetValue();
        string type = value.GetType().Name;
      }

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks