I currently have a JSON file titled "data.json". In this file, I only have an array of people's names, like this:
"data":
[
{
{
"name":"John",
"age":30,
}
{
"name":"Mark",
"age":45,
}
}
]
My goal is to write a script to insert this data into mongoDB. Could I write this directly in my JSON file? How would I go about this? Thanks!
JSONfrom the javascript and sent it off to something (service, PHP/C#/Java/Node.js etc.) which can actually insert it into the database. You cannot write something within theJSONfile itself to do this.