Skip to content

Instantly share code, notes, and snippets.

@kennwhite
Created January 16, 2023 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennwhite/2263a8575e2a400fc7d07388749983c2 to your computer and use it in GitHub Desktop.
Save kennwhite/2263a8575e2a400fc7d07388749983c2 to your computer and use it in GitHub Desktop.
Mock records for testing subdocuments and extended json EJSON-style dates (this is all fake data)
[{
"name": "Angela Merkel",
"dob": {
"$date": {
"$numberLong": "-487900800000"
}
},
"phone": "+49 30 182722720",
"address": {
"street": "Willy-Brandt-Straße 1",
"city": "Berlin",
"state": "Tiergarten",
"postalCode": "10557",
"country": "Germany"
},
"email": "merkel@bundeskanzler.de",
"ssn": "66 150872 P 08 0",
"card": {
"number": "5105 1051 0510 5100",
"type": "Mastercard",
"expiration": "06/2027"
},
"avatar": "🇩🇪"
},{
"name": "Cristiano Ronaldo",
"dob": {
"$date": {
"$numberLong": "484099200000"
}
},
"phone": "+351 22 948 5696",
"address": {
"street": "Rua Dr. José Vieira de Carvalho",
"city": "Funchal",
"state": "Madeira",
"postalCode": "9000-310",
"country": "Portugal"
},
"email": "cris@cristianoronaldo.com",
"ssn": "91660564510",
"card": {
"number": "3566 0020 2036 0505",
"type": "JCB",
"expiration": "05/2026"
},
"avatar": "🇵🇹"
},{
"name": "Narendra Modi",
"dob": {
"$date": {
"$numberLong": "-608774400000"
}
},
"phone": "+91-11-23012312",
"address": {
"street": "7 Race Course Road",
"city": "New Delhi",
"state": "Delhi",
"postalCode": "110001",
"country": "India"
},
"email": "n_modi2012@yahoo.com",
"ssn": "123-45-6790",
"card": {
"number": "6011 0009 9013 9424",
"type": "Discover",
"expiration": "09/2024"
},
"avatar": "🇮🇳"
},{
"name": "Barack Obama",
"dob": {
"$date": {
"$numberLong": "-265420800000"
}
},
"phone": "+1 202-456-1414",
"address": {
"street": "1600 Pennsylvania Avenue NW",
"city": "Washington",
"state": "District of Columbia",
"postalCode": "20500",
"country": "United States"
},
"email": "obama@whitehouse.gov",
"ssn": "920-36-4791",
"card": {
"number": "3782 822463 10005",
"type": "American Express",
"expiration": "03/2029"
},
"avatar": "🇺🇸"
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment