Skip to main content

Examples of Movies in JSON Format

Below are some movies with their genres and realesed date in JSON format:

[
   {
      "title":"The Godfather",
      "genre":"Crime",
      "year":1972
   },
   {
      "title":"Pulp Fiction",
      "genre":"Crime",
      "year":1994
   },
   {
      "title":"Titanic",
      "genre":"Romance",
      "year":1997
   },
   {
      "title":"The Shawshank Redemption",
      "genre":"Drama",
      "year":1994
   },
   {
      "title":"Inception",
      "genre":"Sci-Fi",
      "year":2010
   },
   {
      "title":"The Dark Knight",
      "genre":"Action",
      "year":2008
   },
   {
      "title":"Forrest Gump",
      "genre":"Drama",
      "year":1994
   },
   {
      "title":"The Lion King",
      "genre":"Animation",
      "year":1994
   },
   {
      "title":"The Matrix",
      "genre":"Sci-Fi",
      "year":1999
   },
   {
      "title":"Jurassic Park",
      "genre":"Adventure",
      "year":1993
   },
   {
      "title":"Indiana Jones and the Raiders of the Lost Ark",
      "genre":"Adventure",
      "year":1981
   },
   {
      "title":"E.T. the Extra-Terrestrial",
      "genre":"Sci-Fi",
      "year":1982
   },
   {
      "title":"Star Wars: A New Hope",
      "genre":"Sci-Fi",
      "year":1977
   },
   {
      "title":"The Silence of the Lambs",
      "genre":"Thriller",
      "year":1991
   },
   {
      "title":"Jaws",
      "genre":"Thriller",
      "year":1975
   },
   {
      "title":"The Terminator",
      "genre":"Sci-Fi",
      "year":1984
   },
   {
      "title":"The Rocky Horror Picture Show",
      "genre":"Musical",
      "year":1975
   },
   {
      "title":"Ghostbusters",
      "genre":"Comedy",
      "year":1984
   },
   {
      "title":"The Blues Brothers",
      "genre":"Musical",
      "year":1980
   },
   {
      "title":"The Exorcist",
      "genre":"Horror",
      "year":1973
   }
]

One example of using a JSON file is to store a list of movies and their details, such as the title, release year, director, cast, and rating. This information can be organized in a variety of ways, but one common structure is to have an array of objects, with each object representing a single movie. Here is an example of a JSON file containing a list of movies:

[
   {
      "title":"The Shawshank Redemption",
      "year":1994,
      "director":"Frank Darabont",
      "cast":[
         "Tim Robbins",
         "Morgan Freeman",
         "Bob Gunton"
      ],
      "rating":9.3
   },
   {
      "title":"The Godfather",
      "year":1972,
      "director":"Francis Ford Coppola",
      "cast":[
         "Marlon Brando",
         "Al Pacino",
         "James Caan"
      ],
      "rating":9.2
   },
   {
      "title":"The Godfather: Part II",
      "year":1974,
      "director":"Francis Ford Coppola",
      "cast":[
         "Marlon Brando",
         "Al Pacino",
         "Robert De Niro"
      ],
      "rating":9.0
   }
]

In this example, the JSON file contains an array of movie objects, each with five key-value pairs: "title" for the movie's title, "year" for the release year, "director" for the director's name, "cast" for an array of the main cast members, and "rating" for the movie's rating. This format allows for easy access to specific movie details and allows for the data to be easily shared and used by different systems and applications.