title: HTTParty Post Some parts JSON encoded, some not
body: <p>I am trying to send a post request to a separate app where I need to send a matching signature that is not json encoded and the data, which is json encoded. I keep getting errors when I try to do this, so I'm just not understanding how to format it, and I can't find any examples on SO or their documentation (or anywhere else on the web).</p>
  
  <pre><code>signature = create_signature
  
  result = HTTParty.post("weburl.com/file/to/post_to.php",
          :body =&gt; {[ signature, 
                    :data =&gt; { :timestamp =&gt; @message.created_at,
                      :url =&gt; company.request_host,
                      :name =&gt; @message.name,
                      :email =&gt; @message.email,
                      :phone =&gt; @message.phone,
                      :product =&gt; @message.service,
                      :comments =&gt; @message.message
                    }.to_json
                   ]},
          :headers =&gt; { 'Content-Type' =&gt; 'application/x-www-form-urlencoded' },
          :verify =&gt; false )
  </code></pre>
  
  <p>The error I'm getting currently is syntax error, unexpected '}', expecting => ]}, ^ </p>
  
  <p>I've also tried without the arrays, without the data array, etc.</p>
  
  <p>How do I format this to properly submit this info?</p>