Hey. Ok, so, I http-get'd a javascript file from a website.
It's got all sorts of functions in it, and one of those functions has a dictionary variable with lots of valuable information.
e.g.
Code
file.js
...
function (..., ..., ...) {
....
var dictionary = {
"item1" : "123123",
"item2" : "123123123",
...
item11: "123",
item12: "456",
item13: "789",
...
}
...
}
What would ya'll say is the best way to get the contents of that dictionary variable into my own variable?
I really don't want to just parse it and finangle it into a json and then into a variable, but I will if I have to...