Skip to content

Instantly share code, notes, and snippets.

@ruvan83
Last active February 12, 2020 23:08
Show Gist options
  • Save ruvan83/46d41dcb9739485817a3b2908e561f26 to your computer and use it in GitHub Desktop.
Save ruvan83/46d41dcb9739485817a3b2908e561f26 to your computer and use it in GitHub Desktop.
mydata = [
{
"objects": [
{
"brand": "BMW",
"objectId": "20204wew02",
"description": "Blinkers",
"objectType": "Part",
"brandName": "BMW",
"DOB": true,
"Revision": "1"
},
{
"brand": "Opel",
"objectId": "0856400302",
"description": "Right blinker",
"objectType": "PART",
"brandName": "MAN T&B",
"DOB": false,
"Revision": "2"
},
{
"brand": "Audi",
"objectId": "2020er02",
"description": "Indicator",
"objectType": "PART",
"brandName": "Audi Inc.",
"natoCageCode": "31007A",
"DOB": false,
"Revision": "1"
}
],
"Relations": [
{
"sourceBrand": "BMW",
"targetBrand": "MAN",
"sourceObjectId": "2124213",
"targetObjectId": "23214213",
"changeLog": [
{
"timestamp": "2018-10-01 12:47:50.000000",
"author": {
"userId": "jdoe1",
"userName": "Jonh Doe",
"brand": "MAN",
},
"reason": "New"
}
]
},
{
"sourceBrand": "BMW",
"targetBrand": "Audi",
"sourceObjectId": "20243r0302",
"targetObjectId": "200302",
"changeLog": [
{
"timestamp": "2018-10-01 12:47:50.000000",
"author": {
"userId": "sam12",
"userName": "Sam Smith",
"brand": "champ:Audi",
"system": "systemCO"
},
"reason": "New"
}
]
}
]
},
more objects of the same structure
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment