Validate JSON before it is mapped