Following is a sample of response by pulling a file-set via RDP CFS APIs. Can you advise how to use 'jq' to sort the response by the value of 'size'? Thanks.
{
"value": [
{
"id": "4a8e-1abb-6fd8c40c-94f4-352733f33ebc",
"name": "salesforce-1-XXX_normalised_89568BBAF27C4E2EAC292CC28D80E875",
"bucketName": "TICKHISTORY_CUSTOM_ARCHIVE",
"packageId": "4a13-95e9-c37783d6-bba0-4851594758d0",
"attributes": [
{
"name": "fileName",
"value": "hmh tas 2013"
},
{
"name": "size",
"value": "1858351473"
},
{
"name": "view",
"value": "normalised"
},
{
"name": "message_id",
"value": "e9d7e3cb-e0ff-4f4c-8150-d327a0f9e51b"
},
{
"name": "md5",
"value": "1de22361eebb6993217e5da10e9a4798"
},
{
"name": "releaseTime",
"value": "2022-08-17T10:45:28Z"
}
],
"files": [
"4478-d443-7f611230-bdf4-86c64a1deb05",
"45d2-4891-60c79c56-a3bd-71ddb0ba2425",
"4761-13f8-a64f6b32-ae82-250cc77c6b99"
],
"numFiles": 3,
"availableFrom": "2022-08-17T12:07:02Z",
"availableTo": "2023-01-13T18:26:30Z",
"status": "READY",
"created": "2022-08-17T12:07:03Z",
"modified": "2022-08-17T12:07:04Z"
},
{
"id": "4aa5-3b50-d2924fcb-8633-032e977e0041",
"name": "salesforce-1-XXX_normalised_37316F8A011E432AAA540E5868132330",
"bucketName": "TICKHISTORY_CUSTOM_ARCHIVE",
"packageId": "4a13-95e9-c37783d6-bba0-4851594758d0",
"attributes": [
{
"name": "md5",
"value": "e55e6731f5b008d28e1c070436bc5ebb"
},
{
"name": "view",
"value": "normalised"
},
{
"name": "message_id",
"value": "b6a715b3-e1f5-4b1f-bdb4-3aded9173939"
},
{
"name": "releaseTime",
"value": "2022-08-17T10:45:26Z"
},
{
"name": "fileName",
"value": "XXX index tas 2007"
},
{
"name": "size",
"value": "1197364640"
}
],
"files": [
"41c3-80e1-f008c970-b117-72dfa0d856c3",
"4565-eed3-1caf7c98-9872-5dd0fe328f9f",
"45be-0607-b8b66964-8f94-2369ce109094"
],
"numFiles": 3,
"availableFrom": "2022-08-17T11:03:06Z",
"availableTo": "2023-01-13T16:34:39Z",
"status": "READY",
"created": "2022-08-17T11:03:08Z",
"modified": "2022-08-17T11:03:10Z"
},
{
"id": "4ab0-7d5e-fefa8fd5-98e2-6a34b035cfff",
"name": "salesforce-1-XXX_normalised_BB8B299D6C634AF580CE9DAC7C5F28A8",
"bucketName": "TICKHISTORY_CUSTOM_ARCHIVE",
"packageId": "4a13-95e9-c37783d6-bba0-4851594758d0",
"attributes": [
{
"name": "md5",
"value": "9552ea275e7eb1987ee1627f845a3a4b"
},
{
"name": "releaseTime",
"value": "2022-08-17T10:45:56Z"
},
{
"name": "message_id",
"value": "9e719be7-0dde-4a01-b954-7f4ab9348d16"
},
{
"name": "size",
"value": "2850978035"
},
{
"name": "view",
"value": "normalised"
},
{
"name": "fileName",
"value": "hcus tas 2021"
}
],
"files": [
"4708-70f8-41d7d449-b522-2c3694b62e79",
"4c5c-d187-3e002a0b-a6a5-6c957685a0a8",
"4f18-c3cb-7d8daf29-acff-1d1b01b18030"
],
"numFiles": 3,
"availableFrom": "2022-08-17T12:09:12Z",
"availableTo": "2023-01-18T09:48:47Z",
"status": "READY",
"created": "2022-08-17T12:09:13Z",
"modified": "2022-08-17T12:09:14Z"
}
]