I have a data structure like this:
[ {'SNAPSHOT': {'SnapshotVersion': '304'}},
{'SNAPSHOT': {'SnapshotCreationDate': '2015-06-21 17:33:41'}},
{'CafeData': {'CafeVersion': '2807'}},
{'CafeData': {'IsSoftwareOnly': '1'}},
{'CafeData'{'IsPassportTCPIP': '1'}}
{'SNAPSHOT': {'SnapshotVersion': '777'}},
{'SNAPSHOT': {'SnapshotCreationDate': '2017-07-27 17:37:47'}},]
The output should like this:
[ {'SNAPSHOT': {'SnapshotVersion': '304','SnapshotCreationDate': '2015-06-21 17:33:41'}},
{'CafeData': {'CafeVersion': '2807','IsSoftwareOnly': '1','IsPassportTCPIP': '1'}}
{'SNAPSHOT': {'SnapshotVersion': '777','SnapshotCreationDate': '2017-07-27 17:37:47'}},
]
or the output should like this:
[ {'SNAPSHOT': {'SnapshotVersion': ['304','777'],
'SnapshotCreationDate': ['2015-06-21 17:33:41','2017-07-27 17:37:47']}},
{'CafeData': {'CafeVersion': '2807','IsSoftwareOnly': '1','IsPassportTCPIP': '1'}}
]