# How to import Nested JSON?

**URL:** <https://discuss.elastic.co/t/how-to-import-nested-json/262183>\
**Category:** Elasticsearch\
**Created:** [January 26, 2021, 1:33am UTC](https://discuss.elastic.co/t/how-to-import-nested-json/262183 "2021-01-26T01:33:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hourtest](https://avatars.discourse-cdn.com/v4/letter/h/53a042/32.png) [@hourtest](https://discuss.elastic.co/u/hourtest)\
**Post date:** [January 26, 2021, 1:33am UTC](https://discuss.elastic.co/t/how-to-import-nested-json/262183/1 "2021-01-26T01:33:43Z")

</div>

Nested JSON like this

```auto
{
  "boolean_key": "--- true\n",
  "empty_string_translation": "",
  "key_with_description": "Check it out! This key has a description! (At least in some formats)",
  "key_with_line-break": "This translations contains\na line-break.",
  "nested": {
    "deeply": {
      "key": "Wow, this key is nested even deeper."
    },
    "key": "This key is nested inside a namespace."
  },
  "null_translation": null,
  "pluralized_key": {
    "one": "Only one pluralization found.",
    "other": "Wow, you have %s pluralizations!",
    "zero": "You have no pluralization."
  },
  "sample_collection": [
    "first item",
    "second item",
    "third item"
  ],
  "simple_key": "Just a simple key with a simple message.",
  "unverified_key": "This translation is not yet verified and waits for it. (In some formats we also export this status)"
}

```

How to parse and save this file in es ?  
or  
how to set mapping of index?

---

<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 23, 2021, 1:34am UTC](https://discuss.elastic.co/t/how-to-import-nested-json/262183/2 "2021-02-23T01:34:12Z")

</div>

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