# Index a new document

**URL:** <https://discuss.elastic.co/t/index-a-new-document/35281>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 8:56am UTC](https://discuss.elastic.co/t/index-a-new-document/35281 "2015-11-23T08:56:38Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Willi](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@Willi](https://discuss.elastic.co/u/Willi)\
**Post date:** [January 3, 2016, 6:07pm UTC](https://discuss.elastic.co/t/index-a-new-document/35281/9 "2016-01-03T18:07:38Z")

</div>

I had the same poblem on Windows 8.1 and could solve it the following way:

1. Use " instead of ' to wrap the JSON document to be inserted
2. Mask the " within the document with "

So, your example should then look like this:  
curl -XPUT localhost:9200/customer/external/1 -d "{ "name": "John Doe"}"

Good luck!

---

_[View the full topic](https://discuss.elastic.co/t/index-a-new-document/35281)._
