title: AWS CPP SDK JsonValue add array of double or Integer to JSON
body: <p>i wanted to create a JSON using Aws-sdk for C++. this is what i am doing so far.</p>
  <pre><code>void convertStructToAwsJSON()
  {
      Aws::Utils::Json::JsonValue jsonValue = Aws::Utils::Json::JsonValue();
      jsonValue.WithDouble(&quot;percentage&quot;, 93.6);
      jsonValue.WithInteger(&quot;age&quot;, 25);
      float grades[3] = {87, 95, 65};
      jsonValue.WithArray(&quot;grades&quot;, grades);
  }
  </code></pre>
  <p>but it seems like it throws an error, saying that it is not of the argument type. I checked the documentation and the only thing I can do is add an array of type String.</p>
  <pre><code>const Aws::Utils::Array&lt;Aws::String&gt; grades;
  grades[0] = &quot;87&quot;;
  grades[1] = &quot;95&quot;;
  grades[2] = &quot;65&quot;;
  jsonValue.WithArray(&quot;grades&quot;, grades);
  </code></pre>
  <p>Now it works. How to store it in double or integer instead of string?</p>