SyntaxFix
Write A Post
Hire A Developer
Questions
Assuming that obj is a pre-constructed object (and not a JSON string), you can achieve this with the following:
obj
Object.keys(obj).forEach(function(key){ console.log(key + '=' + obj[key]); });