title: How to create a complex JSON object using C#
body: <p>I have such a JSON structure : </p>
  
  <pre><code>{
   "name": "flare",
   "children": [
    {
     "name": "analytics",
     "children": [
      {
       "name": "cluster",
       "children": [
        {"name": "AgglomerativeCluster", "size": 3938},
        {"name": "MergeEdge", "size": 743}
       ]
      },
      {
       "name": "graph",
       "children": [
        {"name": "BetweennessCentrality", "size": 3534},
        {"name": "SpanningTree", "size": 3416}
       ]
      },
      {
       "name": "optimization",
       "children": [
        {"name": "AspectRatioBanker", "size": 7074}
       ]
      }
     ]
    },
    {
     "name": "animate",
     "children": [
      {"name": "Easing", "size": 17010},
      {"name": "FunctionSequence", "size": 5842},
      {
       "name": "interpolate",
       "children": [
        {"name": "ArrayInterpolator", "size": 1983},
        {"name": "RectangleInterpolator", "size": 2042}
       ]
      },
      {"name": "ISchedulable", "size": 1041},
      {"name": "Tween", "size": 6006}
     ]
    }
   ]
  }
  </code></pre>
  
  <p>How can I generate such a JSON using C#, I found out how to make a JSON array but that's all I have. I don't know how to make <code>children":</code> attribute or I don't know how to make a JSON object that consists of other JSON objects or other JSON arrays. Can you give me a little boost so that I can generate such a JSON object? Thanks. </p>