var URL ="https://urleofthejsonstring";
var jsonC = new System.Net.WebClient().DownloadString(URL);
var decodedJsonString = Json.Decode(jsonC);
Is it possible to just get one product into an array by its PRODUCTID I can do this by looping through and picking it out when it matched but I am sure the should be away of just taking it via a query or filter, if so how would I do this.
Pull a data set from jSon by property
Quick Question... but as usual simple things seem to evade me :)
If I have a basis data set from a json String that looks like this.
[{"ADDTOBASKETURL":"https://website.com/product/url","PRODUCTID":16813}, {"ADDTOBASKETURL":"https://website.com/producturl","PRODUCTID":16814},{"ADDTOBASKETURL":"https://website.com/producturl","PRODUCTID":16815},{"ADDTOBASKETURL":"https://website.com/producturl","PRODUCTID":16816}]
I am calling the whole thing in from a url.
Is it possible to just get one product into an array by its PRODUCTID I can do this by looping through and picking it out when it matched but I am sure the should be away of just taking it via a query or filter, if so how would I do this.
Regards
Rob
Sorry to bump but thought this would be simple :D
is working on a reply...