title: How to PUT a json object with an array using curl
body: <p>I have a series of data to enter into database.  The user interface to enter the data isn't good for bulk entry, so I'm trying to formulate a command line equivalent.  When I examine the network request of the UI in chrome, I see a PUT request of a json object.  When I try to replicate the request</p>
  
  <pre><code>curl -H 'Accept: application/json' -X PUT '{"tags":["tag1","tag2"],"question":"Which band?","answers":[{"id":"a0","answer":"Answer1"},{"id":"a1","answer":"answer2"}]}' http://example.com/service`
  </code></pre>
  
  <p>I get a error </p>
  
  <blockquote>
    <p>curl: (3) [globbing] nested braces not supported at pos X</p>
  </blockquote>
  
  <p>Where X is the character position of first "[".</p>
  
  <p>How can I PUT a json object that includes an array?</p>