title: Nested params with cURL?
body: <p>I've got an iPhone app requesting an API, and it uses a nested param structure to pass in a username and password to login.</p>
  
  <p>In my Rails controller, I'm successfully retrieving this information normally using:</p>
  
  <pre><code>username = param[:session][:username]
  </code></pre>
  
  <p>I'd like to test my API from shell, using cURL.  But I can't figure out how to provide nested params? The code below does NOT work... And I've tried multiple variations. But just can't seem to figure it out?</p>
  
  <pre><code>curl -d '{"session":{"username":"test","password":"password"}}' http://testurl/remote/v1/sessions
  </code></pre>
  
  <p>Any help, much appreciated!</p>