transform n json object to a json array – taking the first level of properties

i’ve this json object { “08f4f705-6e14-4781-8241-d04bf2dc6ada”: { “description”: “xxxxxxxx”, “note”: “yyyyyyyy” }, “05f4f995-6e14-4567-8241-d04bf2d456ee”: { “description”: “aaaaaa”, “note”: “bbb” }, “0675f995-6e14-4567-8241-d4567f2d456z”: { “description”: “fffff”, “note”: “gggg” } } i need to convert into a json array like this: (the elements should be the content of the first level properties) [ { “description”: “xxxxxxxx”, “note”: “yyyyyyyy” },…

How to decode dynamic nested JSON in Swift

I have been trying to decode JSON from a backend system. { “Inst1”: [ { “symbol”: “Inst1”, “id”: 357200929, “ltd”: 20191220 }, { “symbol”: ” Inst1″, “id”: 357200932, “ltd”: 20191220 }, {…} ], “Inst2”: [ { “symbol”: “Inst2”, “id”: 357201388, “ltd”: 20191220 }, { “symbol”: “Inst2”, “id”: 371886725, “ltd”: 20200320 } ] } The name…