title: How to convert C++ string array to json?
body: <p>I have started implementing <a href="https://dev.projectoxford.ai/docs/services/563879b61984550e40cbbe8d" rel="nofollow noreferrer">Microsoft Cognitive Services</a> using C++. I have a C++ String array(faceIds array)</p>
  
  <pre><code>string faceIds[] ={
              "29e874a8-a08f-491f-84e8-eac263d51fe1",
              "6f89f38a-2411-4f6c-91b5-15eb72c17c22",
              "7284b730-6dd7-47a3-aed3-5dadaef75d76",
              "1fc794fa-3fd4-4a78-af11-8f36c4cbf14c",
              "3e57afca-bd1d-402e-9f96-2cae8dbdfbfa",
              "c2a4e0f5-4277-4f5a-ae28-501085b05209",
              "23b5910e-9c32-46dd-95f3-bc0434dff641"
      };
  </code></pre>
  
  <p>Then, I try to convert string array(C++) to <code>json</code> string.</p>
  
  <pre><code>JSONObject jsnobject = new JSONObject(10);
  JSONArray jsonArray = jsnobject.getJSONArray(faceIds);
      for (int i = 0; i &lt; jsonArray.length(); i++) {
          JSONObject explrObject = jsonArray.getJSONObject(i);
  }
  </code></pre>
  
  <p>But, I got problem. So, My question is, <strong>How to convert C++ string array to json?</strong></p>
  
  <p>Thank in Advance.</p>