Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid escape character in extractJSON() output #27

Closed
JorjMcKie opened this issue Jul 28, 2015 · 1 comment
Closed

invalid escape character in extractJSON() output #27

JorjMcKie opened this issue Jul 28, 2015 · 1 comment
Labels

Comments

@JorjMcKie
Copy link
Collaborator

If one wants to decode output of TextPage.extractJSON() with Python's standard json module with an instruction like text = json.loads(tp.extractJSON()), the following exception occurs:

File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Invalid \escape: line 75 column 58 (char 2440)

The escape character being referred to is ' (i.e. apostrophy). Obviously apostrophies should not be regarded as escape characters.

@JorjMcKie JorjMcKie added the bug label Jul 28, 2015
@JorjMcKie
Copy link
Collaborator Author

Changed fitz.i accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant