# Keeping getting this error, please help parse\_exception","reason":"Failed to parse content to map"}

**URL:** <https://discuss.elastic.co/t/keeping-getting-this-error-please-help-parse-exception-reason-failed-to-parse-content-to-map/165501>\
**Category:** Elasticsearch\
**Created:** [January 23, 2019, 11:15pm UTC](https://discuss.elastic.co/t/keeping-getting-this-error-please-help-parse-exception-reason-failed-to-parse-content-to-map/165501 "2019-01-23T23:15:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ballr24](https://avatars.discourse-cdn.com/v4/letter/b/85e7bf/32.png) [@ballr24](https://discuss.elastic.co/u/ballr24)\
**Post date:** [January 23, 2019, 11:15pm UTC](https://discuss.elastic.co/t/keeping-getting-this-error-please-help-parse-exception-reason-failed-to-parse-content-to-map/165501/1 "2019-01-23T23:15:25Z")

</div>

Hi All,

I'm a newbie to Elasticsearch, I'm trying to get my code to work with not\_analyzed

Please see below

```
curl -X PUT "localhost:9200/_mapping/jdbc" -H 'Content-Type: application/x-ndjson' -d '
{
"mappings": {
"jdbc" : { 
"properties" : {
"mac_client" : {
"type" : "string",
"index": "not_analyzed"
}
"mac_sniffer" : {
"type" : "string"
"index": "not_analyzed"
}
"rssi" : {
"type" : "long"
}
"timestamp" : {
"type" : "date"
"format" : "strict_date_optional_time||epoch_millis"
}
}
}
}
}
'

```

Although when I enter this i get the following error

`{"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to parse content to map"}],"type":"parse_exception","reason":"Failed to parse content to map","caused_by":{"type":"json_parse_exception","reason":"Unexpected character ('\"' (code 34)): was expecting comma to separate OBJECT entries\n at [Source: org.elasticsearch.common.compress.deflate.DeflateCompressor$1@66d3b7cb; line: 10, column: 12]"}},"status":400}`

Wondering if any of you can help, would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 20, 2019, 11:15pm UTC](https://discuss.elastic.co/t/keeping-getting-this-error-please-help-parse-exception-reason-failed-to-parse-content-to-map/165501/2 "2019-02-20T23:15:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
