{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "song": {
      "type": "object",
      "properties": {
        "title": {
          "type": "string",
          "description": "Song Title"
        },
        "artist": {
          "type": "string",
          "description": "Song Artist"
        },
        "audio": {
          "type": "string",
          "description": "Path to Audio File on Local Machine"
        },
        "lyrics": {
          "type": "object",
          "properties": {
            "line": {
              "type": [
                "object",
                "array"
              ],
              "properties": {
                "$": {
                  "type": "object",
                  "properties": {
                    "start": {
                      "type": "string"
                    },
                    "end": {
                      "type": "string"
                    },
                    "class": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "start",
                    "end"
                  ]
                },
                "_": {
                  "type": "string"
                },
                "highlight": {
                  "type": [
                    "object",
                    "array"
                  ],
                  "properties": {
                    "$": {
                      "type": "object",
                      "properties": {
                        "start": {
                          "type": "string"
                        },
                        "end": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "required": [
                        "start",
                        "end"
                      ]
                    },
                    "_": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": false,
                  "required": [
                    "$",
                    "_"
                  ],
                  "items": {
                    "type": "object",
                    "properties": {
                      "$": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string"
                          },
                          "end": {
                            "type": "string"
                          },
                          "class": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "_": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "$",
                      "_"
                    ]
                  }
                }
              },
              "additionalProperties": false,
              "required": [
                "$"
              ],
              "items": {
                "type": "object",
                "properties": {
                  "$": {
                    "type": "object",
                    "properties": {
                      "start": {
                        "type": "string"
                      },
                      "end": {
                        "type": "string"
                      },
                      "class": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "start",
                      "end"
                    ]
                  },
                  "_": {
                    "type": "string"
                  },
                  "highlight": {
                    "type": [
                      "object",
                      "array"
                    ],
                    "properties": {
                      "$": {
                        "type": "object",
                        "properties": {
                          "start": {
                            "type": "string"
                          },
                          "end": {
                            "type": "string"
                          }
                        },
                        "additionalProperties": false,
                        "required": [
                          "start",
                          "end"
                        ]
                      },
                      "_": {
                        "type": "string"
                      }
                    },
                    "additionalProperties": false,
                    "required": [
                      "$",
                      "_"
                    ],
                    "items": {
                      "type": "object",
                      "properties": {
                        "$": {
                          "type": "object",
                          "properties": {
                            "start": {
                              "type": "string"
                            },
                            "end": {
                              "type": "string"
                            }
                          },
                          "additionalProperties": false,
                          "required": [
                            "start",
                            "end"
                          ]
                        },
                        "_": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false,
                      "required": [
                        "$",
                        "_"
                      ]
                    }
                  }
                },
                "additionalProperties": false,
                "required": [
                  "$"
                ]
              }
            }
          },
          "additionalProperties": false,
          "required": [
            "line"
          ]
        }
      },
      "additionalProperties": false,
      "required": [
        "title",
        "artist",
        "lyrics"
      ]
    }
  },
  "additionalProperties": false,
  "required": [
    "song"
  ]
}