Should be quite an easy one - I'm getting a dictionary in a .cs file and sending it back to .js as a json, using the following:
//return our value
return Response.AsJson(MyDictionary);
The .js file picks it up here:
App.Server.postJSON("/api/stuff/getmyresponse/" + self.id() + "/" + WhatToGet)
.then(function (r) {
console.log(r);
});
This returns the following response, which is expected:
Object {3214368: 939000, 3214369: 701000, 3214370: 581000, $id: "100"}
(though the id isn't really necessary)
Now, what I'm wondering is, in the .js file, how do I start messing around with this data, or at least setting another variable to it and doing stuff like looping through and running some calculations?
"; } – Nouman Bhatti Feb 28 '17 at 00:08