I'm converting a xml file to a Json format, I'm trying to query the Json using linq.js so far this is what I've done:
var queryResult = linq.from(result).where( function(x){ return x.key == "bpmn2:definitions" } ).select(function(x) { return x } ).toArray();
and I get the following json:
[ { key: 'bpmn2:definitions',
value:
{ '$': [Object],
'bpmn2:message': [Object],
'bpmn2:interface': [Object],
process: [Object] } } ]
how can I get in the same query just by modifying the where clause the embedded object named Process?
EDIT:
I've made it so far:
var queryResult = linq.from(result).where( function(x){ return x.key == "bpmn2:definitions" } ).select(function(x) { return x.value.process } ).toArray();
and I get
[ [ { '$': [Object],
'bpmn2:process': [Object],
'bpmndi:BPMNDiagram': [Object] } ] ]
how can I access bpmn2:process within the same query described above?
thanks for the help