Is JSON data-storing & databases? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is JSON data-storing & databases?

Is JSON data-storing? After i saw a couple of codes. They were JSON, I was wondering, If JSON was databases & Data? TY

18th Nov 2018, 2:30 PM
Potato Hacker
Potato Hacker - avatar
3 Answers
+ 4
json( JavaScript object notation )itself is a syntax for storing data,not a file,or a database. {} is json. you can json files which are called so because they store only json. you can assign objects as a json. john={ age:5,height:"6m" } some no-sql databases like MongoDB store data as json files,hence the similarity between json and databases
18th Nov 2018, 3:21 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
JSON can be used to store and send data, and it is pretty useful since many programs can easily read JSON. It's not a database, just a file that stores your data in object oriented style (i.e as key-value pairs). More info here https://www.json.org
18th Nov 2018, 2:38 PM
Vedant Bang
Vedant Bang - avatar
+ 1
It's a data interchange format, means you can store data in json format in database and even you can retrieve data in json format from database It's not a database. The reason why json is so popular because it is easy for humans to read n write and it is easy for machine to parse and generate.
19th Nov 2018, 9:26 AM
Rishi Anand
Rishi Anand - avatar