<human>:  Can you show me a Python code to rest json schema validation.
<bot>: Here is a Python code to rest json schema validation

import json

def validate_json(json_data):
  """
  >>> validate_json({"a": 1, "b": 2})
  True
  >>> validate_json({"a": 1, "b": 2, "c": 3})
  False
  """
  try:
    json.loads(json_data)
    return True
  except ValueError:
    return False

# Enter the json data
json_data = "{\"a\": 1, \"b\": 2}"

# Calling the function
print((validate_json(json_data)))

#Example Output
# True

#Remember to inspect code for bugs.