JSON Templates

A short guide on how to use JSON templates in Impala.

1) Connecting a local library

JSON templates in Impala allow you to define structured data that can be easily reused and manipulated within your applications. They provide a standardized way to represent data, making it easier to integrate with various systems and APIs.

Below are three JSON templates. 1. Connecting a local library to Impala. 2. Importing an audio playlist. 3, Importing a video playlist. You can use these templates as a starting point for your own JSON configurations.

Connecting a local library


       {
            "audio": [
            {
            "name": "Title of Song",
            "artist": "Aritst of Group",
            "album": "Album Title",
            "file": "Full name of the actual file"
            }
            ],
            "video": [
            {
            "name": "Happy Days",
            "artist": "Unknown artist",
            "file": "Happy Days.mp4",
            "mediaType": "video"
            }
          ]
        }
      

In the "file" field, The path should begin at the root of the library folder. For example, if your library is located at: /Users/username/Music/Library, and your song file is located at /Users/username/Music/Library/Artist/Album/Song.mp3, then the "file" field should be set to "Artist/Album/Song.mp3".

2) Importing an audio playlist.

{"audio": [
    {
      "name": "Rolling In The Deep",
      "artist": "Adele",
      "album": "21",
      "file": "01 Rolling In The Deep.mp3"
    }
  ]
}

3) Importing a video playlist.

Video playlists can be imported into Impala using a similar JSON structure. Below is an example of how to define a video playlist in JSON format.

  {"video": [
    {
      "name": "Happy Days",
      "artist": "Unknown artist",
      "file": "Happy Days.mp4",
      "mediaType": "video"
    }
  ]
}
Feel free to contact us if you have any issues or further questions. You can also take a look at our guide here