Add validation of JSON objects