Expecting property name enclosed in double quotes #435
Replies: 2 comments 1 reply
-
Is it possible some other process writes to the database file? The exception message would hint to me that somehow the Could you post an example of your database file at the time when the exception occurs? |
Beta Was this translation helpful? Give feedback.
-
I have the same problem, and the detail tracing: The problem happen sometime. |
Beta Was this translation helpful? Give feedback.
-
Hi,
May I ask your help ?
I am using Tinydb in python in a super simple way:
`#----------------------------------- write data to db
def to_db (name, value):
#-----------------------------------`
`#----------------------------------- read daat from db
def from_db (name):
#-----------------------------------`
where:
but strings NEVER contain quote or double quote
Still is random and sudden occasions, I ran into the following exception :
"Expecting property name enclosed in double quotes"
OR
"json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 649 (char 648)"
at the line of:
db.upsert ({"name": name, "value": value}, Query ().name == name)
I read all related StackOwerflow articles, but I feel they dont refer to my problem, as I properly use double quote with "name" and "value", and the parameters never contains single or double quotes.
Could you help me please what am I overlooking here ?
Many thanks for your time and help !
Beta Was this translation helpful? Give feedback.
All reactions