input: Write a function to create a program that can store and query user data. The program should save user data in a JSON file and retrieve it when needed. If the JSON file does not exist, it should return None.
  
  
  import json
  
  user_data = {"Name": "John", "Age": 25, "City": "New York"}
  
  def store_user_data(data):
      with open('user_data.json', 'w') as f:
          json.dump(data, f)
  
  def get_user_data():
      try:
          with open('user_data.json') as f:
              return json.load(f)
      except FileNotFoundError:
          return None
  
  
  And this is the complete self-contain program run:
  
  
  def store_user_data(data):
      with open('user_data.json', 'w') as f:
          json.dump(data, f)
  
  
  def get_user_data():
      try:
          with open('user_data.json') as f:
              return json.load(f)
      except FileNotFoundError:
          return None
  
output: def store_user_data(data):
      with open('user_data.json', 'w') as f:
          json.dump(data, f)
  
  def get_user_data():
      try:
          with open('user_data.json') as f:
              return json.load(f)
      except FileNotFoundError:
          return None