Hi, I'm trying to use the following JSON structure so that I can have a variable with "template1" or "template2" value and return the correspondant "Id" value.
I tried using the map filter, json_query and others but I can't do what I need so I'm asking for help! Here's the JSON structure: [ { "Alias": "template1", "AllocatedSpaceThresholdAttention": 100, "AllocatedSpaceThresholdCritical": 101, "AllocatedSpaceThresholdWarning": 101, "Caption": "template1", "ContinuousDataProtectionLogSize": { "Value": 8589934592 }, "ContinuousDataProtectionPoolId": null, "DefaultSnapshotPoolId": null, "ExtendedCaption": null, "FirstDiskPoolId": "AC495608-6A26-4607-B2AE-3A9FB17631BA:{ad5c0aeb-106d-11e7-80c7-005056b91ef0}", "Id": "fd972c7706074e5aa6a4d17480a1a59d", "Internal": false, "LatencyThresholdAttention": 5000, "LatencyThresholdCritical": 30000, "LatencyThresholdWarning": 10000, "MirrorTrunkMappingEnabled": false, "ReadOnly": false, "ReservedSpacePercentage": 0, "SecondDiskPoolId": null, "SectorSize": { "Value": 512 }, "SequenceNumber": 54868, "SequentialStorageEnabled": false, "Size": { "Value": 2147483648 }, "StorageLatencyThresholdAttention": 5000, "StorageLatencyThresholdCritical": 30000, "StorageLatencyThresholdWarning": 10000, "StorageProfileId": "100469DF-0BE1-40DA-874E-9F1DA5A259E3", "UseRedundantMirrorMappings": false, "VirtualDiskAlias": "vd_", "VirtualDiskDescription": "templat1", "VirtualDiskSubType": 0, "VirtualDiskType": 0, "WriteThroughEnabled": false }, { "Alias": "template2", "AllocatedSpaceThresholdAttention": 100, "AllocatedSpaceThresholdCritical": 101, "AllocatedSpaceThresholdWarning": 101, "Caption": "template2", "ContinuousDataProtectionLogSize": { "Value": 8589934592 }, "ContinuousDataProtectionPoolId": null, "DefaultSnapshotPoolId": null, "ExtendedCaption": null, "FirstDiskPoolId": "AC495608-6A26-4607-B2AE-3A9FB17631BA:{ad5c0aeb-106d-11e7-80c7-005056b91ef0}", "Id": "c97ddd95e2da45f8a601a2f024c83602", "Internal": false, "LatencyThresholdAttention": 5000, "LatencyThresholdCritical": 30000, "LatencyThresholdWarning": 10000, "MirrorTrunkMappingEnabled": false, "ReadOnly": false, "ReservedSpacePercentage": 0, "SecondDiskPoolId": null, "SectorSize": { "Value": 512 }, "SequenceNumber": 61696, "SequentialStorageEnabled": false, "Size": { "Value": 5368709120 }, "StorageLatencyThresholdAttention": 5000, "StorageLatencyThresholdCritical": 30000, "StorageLatencyThresholdWarning": 10000, "StorageProfileId": "100469DF-0BE1-40DA-874E-9F1DA5A259E3", "UseRedundantMirrorMappings": false, "VirtualDiskAlias": "vd2_", "VirtualDiskDescription": "template2", "VirtualDiskSubType": 0, "VirtualDiskType": 0, "WriteThroughEnabled": false } ] -- You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To unsubscribe from this group and stop receiving emails from it, send an email to pocoo-libs+unsubscr...@googlegroups.com. To post to this group, send email to pocoo-libs@googlegroups.com. Visit this group at https://groups.google.com/group/pocoo-libs. For more options, visit https://groups.google.com/d/optout.