Storing JSON documents in a graph

This is your Doc as JSON mutation format.

{
    "set": [
 		  { "item": {
        "instanceId": "i-1234567890abcdef0",
        "imageId": "ami-bff32ccc",
        "privateDnsName": "ip-192-168-1-88.eu-west-1.compute.internal",
        "dnsName": "ec2-54-194-252-215.eu-west-1.compute.amazonaws.com",
        "keyName": "my_keypair",
        "amiLaunchIndex": "0",
        "productCodes": "",
        "instanceType": "t2.micro",
        "launchTime": "2018-05-08T16:46:19.000Z",
         "placement": {
           "availabilityZone": "eu-west-1c",
           "groupName": ""
           "tenancy": "default"
         },
        "monitoring": {
           "state": "disabled"
         },
        "subnetId": "subnet-56f5f633",
        "vpcId": "vpc-11112222",
        "privateIpAddress": "192.168.1.88",
        "ipAddress": "54.194.252.215",
        "sourceDestCheck": "true",
        "groupSet": {
            "item": {
          		 "groupId": "sg-e4076980",
               "groupName": "SecurityGroup1"
      		   }
         },
        "architecture": "x86_64",
        "rootDeviceType": "ebs",
        "rootDeviceName": "/dev/xvda",
        "blockDeviceMapping": {
            "item": {
          		 "deviceName": "/dev/xvda",
               "ebs": {
                   "volumeId": "vol-1234567890abcdef0",
                   "status": "attached",
                   "attachTime": "2015-12-22T10:44:09.000Z",
                   "deleteOnTermination": "true"
                 }
      		   }
         },
      }
    }
	]
}

In the example below you will create a single node with each information in the Edges item and ebs. You would just parse this format again for XML when you need to

{
        "blockDeviceMapping": {
           "item|deviceName": "/dev/xvda",
            "ebs|volumeId": "vol-1234567890abcdef0",
            "ebs|status": "attached",
            "ebs|attachTime": "2015-12-22T10:44:09.000Z",
            "ebs|deleteOnTermination": "true"
      		   }
         }