JSFiddle - React, Tailwind, and code Playground

JavaScript

var o = {
"normalkey": "John Smith",
"dynamickey": "testing"
};

$.each(o, function(key, item){
     console.log(key); // this gets you the key names
});