Instantly share code, notes, and snippets.

Embed
What would you like to do?
MongoDB Json Import File
[
{
"id": 1,
"name":"Tom Riddle",
"courses_registered": [
{ "CID" : "CS001",
"sem" : "Spring_2001"},
{ "CID" : "CS002",
"sem" : "Summer_2001"} ,
{ "CID" : "CS001",
"sem" : "Fall_2001"}],
"year_graduated": "2001"
},
{
"id": 2,
"name":"Ned Stark",
"courses_registered": [
{ "CID" : "CS003",
"sem" : "Spring_2002"},
{ "CID" : "CS004",
"sem" : "Summer_2002"} ,
{ "CID" : "CS005",
"sem" : "Fall_2002"}],
"year_graduated": "2002"
},
{
"id": 3,
"name":"Haan Solo",
"courses_registered": [
{ "CID" : "CS003",
"sem" : "Spring_2002"},
{ "CID" : "CS004",
"sem" : "Summer_2002"} ,
{ "CID" : "CS005",
"sem" : "Fall_2002"}],
"year_graduated": "2002"
},
{
"id": 4,
"name":"Frodo Baggins",
"courses_registered": [
{ "CID" : "CS009",
"sem" : "Spring_2003"},
{ "CID" : "CS010",
"sem" : "Summer_2003"} ,
{ "CID" : "CS004",
"sem" : "Fall_2003"}],
"year_graduated": "2003"
},
{
"id": 5,
"name":"Sheldon Cooper",
"courses_registered": [
{ "CID" : "CS004",
"sem" : "Spring_2004"},
{ "CID" : "CS005",
"sem" : "Summer_2004"} ,
{ "CID" : "CS003",
"sem" : "Fall_2004"}],
"year_graduated": "2004"
},
{
"id": 6,
"name":"Tony Stark",
"courses_registered": [
{ "CID" : "CS009",
"sem" : "Spring_2005"},
{ "CID" : "CS006",
"sem" : "Summer_2005"} ,
{ "CID" : "CS004",
"sem" : "Fall_2005"}],
"year_graduated": "2005"
},
{
"id": 7,
"name":"Stephan Hawkings",
"courses_registered": [
{ "CID" : "CS004",
"sem" : "Spring_2006"},
{ "CID" : "CS005",
"sem" : "Summer_2006"} ,
{ "CID" : "CS003",
"sem" : "Fall_2006"}],
"year_graduated": "2006"
},
{
"id": 8,
"name":"Cerci Lannister",
"courses_registered": [
{ "CID" : "CS001",
"sem" : "Spring_2007"},
{ "CID" : "CS003",
"sem" : "Summer_2007"} ,
{ "CID" : "CS009",
"sem" : "Fall_2007"}],
"year_graduated": "2007"
},
{
"id": 9,
"name":"Wonder Woman",
"courses_registered": [
{ "CID" : "CS006",
"sem" : "Spring_2008"},
{ "CID" : "CS007",
"sem" : "Summer_2008"} ,
{ "CID" : "CS009",
"sem" : "Fall_2008"}],
"year_graduated": "2008"
},
{
"id": 10,
"name":"Hermione Granger",
"courses_registered": [
{ "CID" : "CS010",
"sem" : "Spring_2009"},
{ "CID" : "CS002",
"sem" : "Summer_2009"} ,
{ "CID" : "CS007",
"sem" : "Fall_2009"}],
"year_graduated": "2009"
},
{
"id": 11,
"name":"Peter Parker",
"courses_registered": [
{ "CID" : "CS001",
"sem" : "Spring_2010"},
{ "CID" : "CS002",
"sem" : "Summer_2010"} ,
{ "CID" : "CS005",
"sem" : "Fall_2010"}],
"year_graduated": "2010"
}
]
@pavanpkulkarni

This comment has been minimized.

Copy link
Owner Author

pavanpkulkarni commented May 16, 2018

This file is used to import data to MongoDB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment