Fixing json.readAsXXX methods