<human>:  Give me a Python function to rest json schema validation.
<bot>: Here is a Python function to rest json schema validation

import json

def validate(json_data):
  """
  Validates the json data against the schema.

  Parameters
  ----------
  json_data : str
    The json data to be validated.
  """
  try:
    json.loads(json_data)
    return True
  except ValueError:
    return False

# Enter the json data
json_data = "{\"name\": \"
Rosey\", \"age\": 20}"

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

#Example Output
# True

#Remember to inspect code for bugs.