title: React and Axios Post payload formatting
body: <p>I'm really new to this so forgive me if I word things wrong.
  So right now I have a simple web UI with a text box for a Name, and then a checkmark selection box for a type, along with a submit button.</p>
  <p>Test code looks something like this:</p>
  <pre><code>value = &quot;val7&quot;;
  key = &quot;63&quot;;
  typeID = 103;
  name = &quot;testname&quot;;
  
  const onSubmitClick = (event) =&gt; {
      axiosPost('testurl',
      {
          Message: {
              Type: typeID,
              Payload: {
                  title: null,
                  messagebody: null,
                  data: {
                      value,
                      key,
                  },
              },
              Delivery: {
                  Name: [{&quot;Name&quot;: name}]
              }
          }
      })
  }
  
  </code></pre>
  <p>and when I press submit, the Payload looks like this:</p>
  <pre><code>{
      &quot;Message&quot;: {
          &quot;Type&quot;: 103,
          &quot;Payload&quot;: {
              &quot;title&quot;: null,
              &quot;messagebody&quot;: null,
              &quot;data&quot;: {
                  &quot;value&quot;: &quot;val17&quot;,
                  &quot;key&quot;: &quot;63&quot;
              }
          },
          &quot;Delivery&quot;: {
              &quot;Name&quot;: [{
                  &quot;Name&quot;: &quot;testname&quot;
              }]
          }
      }
  }
              
  </code></pre>
  <p>However, I need the data portion of the payload to look more like this:</p>
  <pre><code>{
      &quot;Message&quot;: {
          &quot;Type&quot;: 103,
          &quot;Payload&quot;: {
              &quot;title&quot;: null,
              &quot;messagebody&quot;: null,
              &quot;data&quot;: {
                  &quot;val17&quot;: &quot;63&quot;
              }
          },
          &quot;Delivery&quot;: {
              &quot;Name&quot;: [{
                  &quot;Name&quot;: &quot;testname&quot;
              }]
          }
      }
  }
  </code></pre>
  <p>How do I go about doing this?</p>