get all values in json object js code example
Example 1: how to get all json object with jsonpath
i would put just empty string ""
JsonObject -->> ""
Example 2: get all keys in json object
var obj = {name: "Jeeva", age: "22", gender: "Male"}
console.log(Object.keys(obj))
Example 3: loop through json object javascript
var p = {
"p1": "value1",
"p2": "value2",
"p3": "value3"
};
for (var key in p) {
if (p.hasOwnProperty(key)) {
console.log(key + " -> " + p[key]);
}
}