-
Notifications
You must be signed in to change notification settings - Fork 530
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
Reading an existing .json file written out using TinyDB #67
Comments
Slightly weird question but is the JSON file valid? The last time I worked on the code we used a |
Ah, you seem to have it right.
The |
Actually I'd like to keep this open. TinyDB currently assumes that if the JSON module raises a |
Unhelpful but encouraging 👍 for looking into this issue. |
This should be closed in the 3.0 release, I just forgot to close this issue. |
Apologies if this is a stupid question, but I have not seen the answer in your docs.
A colleague has passed me a
.json
file written out using TinyDB. I would like to read its contents. However, if I usethen
db
is empty, and the file on disk is overwritten (contains one line{"_default": {}}
). What's the correct way to read this file into a Python interpreter? I see no "load" method in the docs andtinydb.Storage.read
doesn't do this.The text was updated successfully, but these errors were encountered: