nmaggioni/Simple-JSONdb

cant set value

Closed this issue · 2 comments

if i want to add something to the database, it wont work. no error. it just dosnt write it to the file
code:
db.set(key, JSON.stringify(owner));
db.sync();

I'm betting on a duplicate of #10. If that doesn't apply, please attach a more complete snippet of what you're trying to achieve.

you dont need to JSON.stringify