fixing ambiguous json mapping in errors model