I have JSON data in a local file, and I have success to load using jQuery. Now I need to search pId = "foo1" only.
JSON
{
 "1":{
      "id": "one",
      "pId": "foo1",
      "cId": "bar1"
     },
 "2":{
      "id": "two",
      "pId": "foo2",
      "cId": "bar2"
     },
 "3":{
      "id": "three",
      "pId": "foo3",
      "cId": "bar3"
     }
}
jQuery
id = "1"; // Or whatever
var entry = objJsonResp[id];
console.log(entry);
But it shows id, pId and cId values and I only need the pId value, not other.
So what is the best way to get the value of pId