title: How to parse a JSON array in RAd Studio?
body: <p>I am trying to parse the following Json document:</p>
  
  <pre><code>[
    {"EventType":49,"Code":"234","EventDate":"20050202", "Result":1},
    {"EventType":48,"Code":"0120","EventDate":"20130201", "Group":"g1"}
  ]
  </code></pre>
  
  <p>I use the following code:</p>
  
  <pre><code>TJSONObject* jsonread0 = (TJSONObject*) TJSONObject::ParseJSONValue(TEncoding::ASCII-&gt;GetBytes(Memo1-&gt;Lines-&gt;Text), 0);
  
  for(int i=0;i&lt;jsonread0-&gt;Size();i++)
  {
      TJSONPair* pair = jsonread0-&gt;Get(i);
  </code></pre>
  
  <p>At this point, <code>pair.JsonValue</code>is NULL.  What do I need to do to read the values?</p>