Remove part from a string [SWIFT] : I am working on an iOS App using Swift 4. I am writing some data to a Firebase Database ("FB-DB"). When reading the data, the app generates the following:

    let sharedDataReceivedWithBraces = "[\(each.1)]"

The respective console output is the following after `print(sharedDataReceivedWithBraces)`:

    [{
    id = "EEBEA75A-4DD0-4B30-84FB-1610A664276A";
    key = "-Ku5VUHb5rbiy1ipFPL1";
    code = 81358;
    time = "14:06";
    }]

I want to remove the braces {} from this to further process the info, but I struggle a lot with this. Can you help me how to make my console's output look like this?

    [
    id = "EEBEA75A-4DD0-4B30-84FB-1610A664276A";
    key = "-Ku5VUHb5rbiy1ipFPL1";
    code = 81358;
    time = "14:06";
    ]

Thank you very much for your great and patient help!



Cheers,

*Janninho*