title: Json.NET: serializing/deserializing arrays
body: <p>I'm using a Json.NET library. What's the most convenient way of serializing/deserializing arrays in JSON via C#? For example, I'm trying to deserialize the following text (reading from file):</p>
  
  <pre><code>{
      "Name": "Christina",
      "Gender": "female",
      "Favorite_numbers": [11, 25 ,23]
  }
  </code></pre>
  
  <p>I'm reading the text above from file to a variable:</p>
  
  <pre><code>JObject o = JObject.Parse(File.ReadAllText("input.txt"))
  </code></pre>
  
  <p>And then, when I'm trying to extract an array <code>[11, 24, 23]</code> with the</p>
  
  <pre><code>int[] num = (int[]) o["Favorite_numbers"]
  </code></pre>
  
  <p>I receive an error.</p>
  
  <p>What am I doing wrong? How do I correctly read an array? How do I correctly read a 2-dim arrays of the following kind <code>[[1, 2, 3], [4, 5, 6]]</code>?</p>