title: Firebase POST Request - REST API
body: <p>I'm trying to submit a <code>POST</code> reqeust to Firebase using the <code>REST API</code>. Following the API, I created the following JSON which I submit as the body of my request: </p>
  
  <pre><code>"'{\"senderId\":\"CBPA9tdrNyc1Y3AxSb8rkZjDJxh2\",\"senderName\":\"John\",\"text\":\"Hello its me\"}'"
  </code></pre>
  
  <p>This is how my data structure looks: </p>
  
  <p><a href="https://i.stack.imgur.com/jkku7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jkku7.png" alt="enter image description here"></a></p>
  
  <p>However, after submitting my request, instead of creating an entry similar to the one above, the whole string gets added as a single entry as seen below: </p>
  
  <p><a href="https://i.stack.imgur.com/pdOKw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pdOKw.png" alt="enter image description here"></a></p>
  
  <p>How can I fix this?</p>
  
  <p>This is the curl request suggested by the Firebase Documentation: </p>
  
  <pre><code>curl -X POST -d '{"user_id" : "jack", "text" : "Ahoy!"}' \
    'https://[PROJECT_ID].firebaseio.com/message_list.json'
  </code></pre>
  
  <p>I am currently testing this using <a href="https://www.hurl.it/" rel="nofollow noreferrer">https://www.hurl.it/</a> with the following request:</p>
  
  <p><a href="https://i.stack.imgur.com/RXkwh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RXkwh.png" alt="enter image description here"></a></p>