I have a java script object in key values, some keys are string and some are array containing objects. I want to find the key of the object and also want to know the type of the key.
GrandParent:{
                'name': '',
                Parent: [{
                    'name': '',
                    Child: [{
                        'name': '',
                        GrandChild: [{
                            'name': 'section',
                        }]
                    }],
                    Child: [{
                        name:''
                    }]
                }],
            }
 
     
    