Questions tagged [jsondb]

This is a utility for managing content in a database which stores content in JSON format.

jsondb is a utility for managing content in a database which stores content in JSON format.

9 questions
2
votes
1 answer

ERROR TypeError: Cannot set property 'author' of undefined

I get this error when i want to save changes to sever " add a comment" by clicking Submit button thanks for helping onSubmit() { this.comment.author = this.author; this.comment.rating = this.rating; this.comment.comment =…
A.Rekik
  • 43
  • 6
1
vote
1 answer

How to Delete Dynamically Created Elements from db.json

I'm trying to dynamically create cards using a db.json, and add - delete, edit, add new features. However, since every card has its own delete button, I'm struggling to attach them to their corresponding cards. Also when trying to log out all the…
Zixxy7
  • 71
  • 4
1
vote
1 answer

How to add a JSON value read from a parent JSON in a table column in SQL Server?

I'm trying to read a JSON and insert the values into a table. Among those values, there is one another JSON object. I'm trying to insert that JSON value into a column, but my code inserts nothing. Here's what I tried so far: DROP TABLE IF EXISTS…
Araf
  • 263
  • 1
  • 5
  • 19
0
votes
1 answer

How to filter JSON Data in backend DB using JavaScript

My backend JSON DB is running on http://localhost:3000/user and contains the following: db.json { "user": [ { "id": 1, "name": "Stephen", "profile": "[Unsplash URL Placeholder]", "team": "Ireland" }, { …
0
votes
1 answer

Delaying system shutdown during json DB update in python

So I have a rather large json database that I'm maintaining with python. It's basically scraping data from a website on an hourly basis and I'm running daily restarts on the system (Linux Mint) via crontab. My issue is that if the system happens to…
0
votes
1 answer

Parsing JSON, selecting a phrase, and outputting to a file

So I've got a bunch of JSON files that I'm trying to parse. Here's an excerpt from one of the files I'm working on: https://pastebin.com/MQiQyvXH Pretty much what I'm trying to do is select all of the text between: "FileList":[{"Path": and "Size"…
user6712900
0
votes
1 answer

jasondb in Windows Python 3.5

I started out trying to install ChatterBot-master from Github on Windows 10 with Python 3.5, but it threw an unmet dependency error for jsondb. After trying pip: PS C:\Users\hackr> pip install jasondb Collecting jasondb Could not find a version…
Hack-R
  • 22,422
  • 14
  • 75
  • 131
-1
votes
0 answers

Calling async function from non-async function is returning false when the condition is true

I'm new to JavaScript and especially new to async functions. Anyway, I have an async JavaScript function that sends an axios GET request to my backend JSON DB on http://localhost:3000/user. Then, inside my non-async function, I'm calling the async…
-2
votes
0 answers

How to PATCH JSON DB from frontend

I'm quite new to Javascript and mock APIs but I have a JSON DB which I'm trying to PATCH from the frontend. In short, I'm creating a 2023 Rugby World Cup sweepstake and I want a user to enter their name and then click submit. Once submitted, the…