title: Parsing JSON arrays in C++
body: <p>I am writing a server-client program. The server is written in C++ and I use JSON strings to send the data. <a href="http://code.google.com/p/jsonplus/" rel="nofollow">This library</a> helps me a lot and everything works, but I have one question: How can I parse a JSON array of strings to a normal C++ array? I searched for methods in the documentation, but didn't find any. Do I have to write my own function?</p>
  
  <p>Example, where <code>s</code> is the JSON string <code>{"msg":"message", "content":["content1", "content2"]}</code>:</p>
  
  <pre><code>CJsonObject *obj = CJsonParser::Execute(s); 
  string msg = (*obj)["msg"]-&gt;ToString();
  string content = (*obj)["content"]-&gt;ToString();
  cout &lt;&lt; msg &lt;&lt; endl; // message
  cout &lt;&lt; content &lt;&lt; endl; // ["content1", "content2"]
  </code></pre>
  
  <p>But I want an array/vector of "content1", "content2".</p>