# JSON Path


# Description

JSON path is a special kind of path that is used in the key values in Index configurations. JSON paths are used to specify an element within a JSON string, specifically the JSON string for the item itself. It can be used to get an aspect, range, or poi value within an item in the dataset.

# Example

This is your example item within your dataset that 1search can search through

{
  "SearchId": {
    "Id": "123456",
    "UniqueId": 112321232323,
    "Category": "Manga",
    "Sale Status": "Back Order",
    "Description": "Description of book goes here",
    "Prices": [
      {
        "Price": 25
      }],
    "Specification": [{
      "Genre": "Adventure Fiction",
      "Series": "Jojo's Bizarre Adventure",
      "Volume": 1,
      "Author": "Hirohiko Araki"
    }]
  }
}

Within your Indexes configurations you have defined an aspect Genre, when defining that aspect it would look something like this:

<Aspect Name="Genre" Key="Specification.Genre" MultiSelectMode="Or" ChildOnly="true">
    <Child>Series</Child>
</Aspect>

In the attribute Key the value is Specification.Genre. This is the JSON path referring to the json string data above. The genre value is under specification and thus the JSON path that is used in key is Specification.Genre