Simple schemas for validation and casting JSON objects