title: How do I make a jsoncpp array?
body: <p>I'm stuck with <a href="https://github.com/open-source-parsers/jsoncpp" rel="nofollow noreferrer">jsoncpp</a>. I would like to create an array like this:</p>
  
  <pre><code>"Cords": [{"x": 10, "y": 20}, {"x": 70, "y": 40}, {"x": 15, "y": 65}]
  </code></pre>
  
  <p>I managed to do the regular stuff with jsoncpp (see below) but I am stuck in this case of making a JSON array.</p>
  
  <pre><code>Json::Value event;
  
  event["name"] = "Joe";
  event["Direction"]["left"]["x"] = "1338";
  event["Direction"]["right"]["x"] = "1337";
  </code></pre>
  
  <p><strong>Edit:</strong><br>
  I want to print it all within event.<br>
  I do not want to print cords separately. </p>