Add some saneness to the json identity parsing