Use better JSON type mismatch error messages.