I have a REST webservice which returns the following output while accessing json REST url "http://example.com/api/v2.0/deliverable/?numb=339&limit=1&order_by=-id&format=json";
Backend is Django Python Framework, which provides REST API for this application. Below is the output of REST URL.
{
meta: {
limit: 1,
next: "/api/v2.0/deliverable/?limit=1&format=json&order_by=-id&numb=339&offset=1",
offset: 0,
previous: null,
total_count: 200
},
objects: [
{
bcontext: "/api/v2.0/numbcontext/2/",
bugs: [ ],
numid: {
numtype: "beta",
branch: "mybranch",
numidstatus: [
{
numid: "/api/v2.0/numid/525030/",
failurereason: "",
id: "372734",
lastupdate: "2013-04-29T11:28:47",
overridden: false,
overridedesc: "",
overrideuser: null,
recommended: true,
resource_uri: "/api/v2.0/numidstatus/372734/",
stype: {
id: "1",
name: "2hr",
resource_uri: "/api/v2.0/s/1/"
}
},
{
numid: "/api/v2.0/numid/525031/",
failurereason: "",
id: "372735",
lastupdate: "2013-04-29T11:28:48",
overridden: false,
overridedesc: "",
overrideuser: null,
recommended: true,
resource_uri: "/api/v2.0/numidstatus/372735/",
stype: {
id: "1",
name: "2hr",
resource_uri: "/api/v2.0/s/1/"
}
}
]
id: "904930",
cset: 2268936,
coverage: false
},
endtime: "2013-04-29T08:32:27",
starttime: "2013-04-29T07:50:15"
}
]
}
This query returns 20 results, so i filtered it by limit=1. but i just need to access the sub-component of numid, i.e, i want to access cset which has value 989898.
I tried this url, but its not working; "http://example.com/api/v2.0/deliverable/?numb=339&cset=989898&limit=1&order_by=-id&format=json"
Please help me.