I have a json data
jobs = [{
"firstname": "myname"
}, {
"place": "myplace"
}]
from this how can i print the key names "firstname"
and "place"
$.each(jobs, function (key, value) {
var name = value.firstname
});
what i want is in the output i have to print firstname : myname
and place : myplace
.I dont want to hard code firstname
and place
.i need to get it from json data itself.How it is possible