Javascript – Convert key value object to array of objects
I have object key value in below format. { "Code1": { "char10": "ch1", "number1": "1", "text1": "txt1" }, "Code2": { "char2": "ch2", "num2": "2" }, "Code3": { "text": "txt4" } } Would like to convert to this format : {…