After converting a Json object from an Excel sheet, I noticed that some keys have line breaks and spaces. I need a function to remove all line breaks and spaces from the json object's keys. Here is the structure of the json:
{"SOH":[{"MN":"asdf","Part\r\nNumber":"1234"},{"MN":"asdf2","Part\r\nNumber":"12343"}]}
The expected outcome should look like this:
{"SOH":[{"MN":"asdf","PartNumber":"1234"},{"MN":"asdf2","PartNumber":"12343"}]}
Thank you for your support!