After reading this post on Stack Overflow about how to Remove String from JSON, I am looking to populate a Dojo Selectbox with JSON Data. However, I am facing an issue where I need to modify the JSON Data before passing it to the dijit.form.select Box.
The data is retrieved using JsonRest. My question is, how can I load the JSON Data into a regular object variable? I attempted the code below but it did not yield the desired results.
var processStore = new JsonRest({
target: "http://cnwin.ebusiness.local/activiti-rest/service/repository/process-definitions?startableByUser=kermit",
headers: {"Authorization": "Basic a2VybWl0Omtlcm1pdA=="},
allowNoTrailingSlash: false
});
var processes = processStore.query("",{});
My goal is simple - to retrieve JSON data from the JsonRest store and store it in a regular variable.
Thank you