Let's say I have a JSON Object that is this:
{"success":true, "uploaded_url":uploaded_url}
How do I alert("uploaded_url")?
Let's say I have a JSON Object that is this:
{"success":true, "uploaded_url":uploaded_url}
How do I alert("uploaded_url")?
If you got a JSON string like this:
var myjson = '{"success":true, "uploaded_url":uploaded_url}'
you need to parse it into an javascript object first. Most convinient way is to use JSON.parse() which pretty much browsers support nowadays (if not, visit http://www.json.org)
var myobj = JSON.parse(myjson);
alert(myobj.uploaded_url);