Sitecore Swamp

Dive in the Sitecore Swamp

NAVIGATION - SEARCH

json2csharp

http://json2csharp.com/

[

   {
      "firstname":"Jeff",
      "lastname":"Wang",
      "boys":[
         {
            "firstname":"Daniel",
            "lastname":"Wang"
         },
         {
            "firstname":"Brandon",
            "lastname":"Wang"
         }
      ],
   }
]

=> 

public class Boy
{
    public string firstname { get; set; }
    public string lastname { get; set; }
}

public class RootObject
{
    public string firstname { get; set; }
    public string lastname { get; set; }
    public List<Boy> boys { get; set; }
}