Raise the correct exception on parse errors in Json.read_file