title: How do I validate JSON against Avro schema
body: <p>I have a JSON response from an API and I would like to validate against an existing Avro schema(strict validation with names and types).</p>
  
  <p>The response is of type </p>
  
  <p>{"name":"alex","age":23,"sex":"M","active":"true"}</p>
  
  <p>The schema has the above types with the data types and I would like to validate the schema and throw an exception in case it fails.(Preferably JAVA).</p>
  
  <p>I have read a solution using the command line but I wanted to do it programmatically.</p>
  
  <p>Thanks in advance</p>