input: Write a python function to parse JSON data and extract the title, author, and year.
  assert parse_json('{"title": "The Adventures of Tom Sawyer", "author": "Mark Twain", "year": 1876}') == ("The Adventures of Tom Sawyer", "Mark Twain", 1876)
  assert parse_json('{"title": "1984", "author": "George Orwell", "year": 1949}') == ("1984", "George Orwell", 1949)
  assert parse_json('{"title": "To Kill a Mockingbird", "author": "Harper Lee", "year": 1960}') == ("To Kill a Mockingbird", "Harper Lee", 1960)
output: import json
  
  def parse_json(json_str):
      data = json.loads(json_str)
      return data['title'], data['author'], data['year']