ActiveRecord::JSONValidator makes it easy to validate JSON attributes against a JSON schema.