Json – Recursive javascript function that converts nested object keys to string and store all keys in arrray
I am trying to write a javascript recursive function that receives one parameter - nested JSON object. The function goes through the potentially infinitely nested object and converts all the keys (property names) to a string that is stored in…