print key as well as value in nested JSON [closed]

I want to print key as well as value,tried several approach with .map but did not get expected output

resData =[
  {
    _index: 'web',
    _type: 'event',
    _id: 'web+0+93',
    _score: null,
    _source: {
      'os-name': 'Windows',
      'browser-version': '90.0',
      'os-version': '10',

    },
    sort: [ '20210729T05:48:03Z' ]
  }
]

Expected Output

'os-name': 'Windows'
'os-version': '10'