I am trying to get json object from another js file. I found out the end result is json in string form look like this
"[{ "part": "Part1", "dwg": "ASAD" }, { "part": "Part2", "dwg": "B" }];"
How can I convert into JSON object? Here is my code
var jsonData = $.get("/Scripts/dummy.js", function (data) {
console.log(data);
return data;
});