# Error parsing mappings: Unexpected token f in JSON at position 81

**URL:** <https://discuss.elastic.co/t/error-parsing-mappings-unexpected-token-f-in-json-at-position-81/194966>\
**Category:** Kibana\
**Created:** [August 13, 2019, 6:48am UTC](https://discuss.elastic.co/t/error-parsing-mappings-unexpected-token-f-in-json-at-position-81/194966 "2019-08-13T06:48:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pharshil9697](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@pharshil9697](https://discuss.elastic.co/u/pharshil9697)\
**Post date:** [August 13, 2019, 6:48am UTC](https://discuss.elastic.co/t/error-parsing-mappings-unexpected-token-f-in-json-at-position-81/194966/1 "2019-08-13T06:48:11Z")

</div>

I am trying to import one CSV file in Data Visualizer in Kibana.

Mappings :

```
{
  "@timestamp": {
    "type": "date"
  },  
  "Date": {
    "type": "date"
    format : "dd-MM-yyyy"
  },
  "Order_Demand": {
    "type": "long"
  },
  "Product_Category": {
    "type": "keyword"
  },
  "Product_Code": {
    "type": "keyword"
  },
  "Warehouse": {
    "type": "keyword"
  }
}

```

Ingest Pipeline :

```
{
  "description": "Ingest pipeline created by file structure finder",
  "processors": [
    {
      "date": {
        "field": "Date",
        "timezone": "{{ beat.timezone }}",
        "formats": [
          "dd-MM-yyyy"
        ]
      }
    }
  ]
}

```

While importing it, it displays this error :  
Error parsing JSON

```
Error parsing mappings: Unexpected token f in JSON at position 81
```

---

<div class="post-metadata">

**Author:** ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)\
**Post date:** [August 13, 2019, 10:31pm UTC](https://discuss.elastic.co/t/error-parsing-mappings-unexpected-token-f-in-json-at-position-81/194966/2 "2019-08-13T22:31:35Z")

</div>

Yep, looks like your json is not formatted correctly, specifically that `format` is not in quotes, and that there isn't a comma at the end of the previous line.

---

<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:** [September 10, 2019, 10:31pm UTC](https://discuss.elastic.co/t/error-parsing-mappings-unexpected-token-f-in-json-at-position-81/194966/3 "2019-09-10T22:31:36Z")

</div>

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