Hello all!
I have been a member of this site only a short period of time but wow has my knowledge grown by leaps and bounds!
One of the decisions I made after watching over a hundred videos from DNNCreative was that I was going to use OpenWebStudio to develop my modules instead of doing it the straight up Visual Studio DotNetNuke way. So far I have had great success and your tutorial videos have been instrumental in this.
However I have recently begun to work on my most difficult projects and the road blocks are popping up!
I posted this same question in the OWS forums but haven't gotten any response, so I hope someone here can shed some light.
What I am trying to do is parse a JSON query that returns the following:
[
{
"source_id": "24047",
"uptodate": [2010, 9, 24],
"name": "Outremont",
"electoral_group": {
"province": "",
"name": "Canada",
"level": "Federal"
}
},
{
"source_id": "62",
"uptodate": [2010, 9, 24],
"name": "Mercier",
"electoral_group": {
"province": "QC",
"name": "Québec",
"level": "Provincial"
}
}
]
I have tried implementing every method of defining child items as shown here:
http://goessner.net/articles/JsonPath/ But keep coming up with nothing.
I need to iterate through each item, selecting only the item whose child "level" value is either federal, provincial or municipal (depending on the case) and then display the parent "Name" value and "Source_id". I have attached my OWS config file which contains the whole module, so that it may help in understanding what I am trying to accomplish.
Any and all help would be greatly appreciated!