updated mapping for json error