Define a schema for your json, and validate it