title: Trying to read JSON data from a JSON planetary API
body: <p>I am try to read data from this JSON file <a href="http://www.astro-phys.com/api/de406/states?date=1000-1-20&amp;bodies=mars" rel="nofollow">http://www.astro-phys.com/api/de406/states?date=1000-1-20&amp;bodies=mars</a> the date reads fine but I want to read :</p>
  
  <p><code>[-168045229.22750974, 164411532.90034229, 80245103.265201837]</code></p>
  
  <p>But as the data doesn't have a name I don't know how. This is my current code</p>
  
  <pre><code>    using Newtonsoft.Json;
      using System;
      using System.Collections.Generic;
      using System.ComponentModel;
      using System.Data;
      using System.Drawing;
      using System.IO;
      using System.Linq;
      using System.Net;
      using System.Text;
      using System.Threading.Tasks;
      using System.Web.Script.Serialization;
      using System.Windows.Forms;
  
      namespace Planets
  
  {
      public partial class Form1 : Form
      {
          public Form1()
          {
              InitializeComponent();
          }
  
          private void pictureBox1_Click(object sender, EventArgs e)
          {
  
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
              string filecontents;
              string pagerequest = "http://www.astro-phys.com/api/de406/states?date=1000-1-20&amp;bodies=mars";
  
              WebRequest request = WebRequest.Create(@pagerequest);
              WebResponse response = request.GetResponse();
              Stream data = response.GetResponseStream();
              string html = string.Empty;
              using (StreamReader sr = new StreamReader(data))
              {
                  filecontents = sr.ReadToEnd();
              }
  
              JavaScriptSerializer jsonSerialiser = new JavaScriptSerializer();
              Results results = jsonSerialiser.Deserialize&lt;Results&gt;(filecontents);
              richTextBox1.Text = (results.date);
              Console.Write(results.date);
              Console.ReadLine();
          }
      }
  
      public class Results
      {
          public string date { get; set; }
          public Position position { get; set; }
      }
  
  
      //public class Position
      //{
      //    public int x { get; set; }
      //    public int y { get; set; }
      //}
  }
  </code></pre>
  
  <p>I am brand new to this and any help would be appreciated</p>
  
  <p>Thanks</p>