Hello todos!
Let's say you have the following JSON object
{"":"some text"}
How do you retrieve it in JavaScript?
json_in_var={"":"some text"}
alert(json_in_var.)
I'm perplexed on this one, any help welcome!
Hello todos!
Let's say you have the following JSON object
{"":"some text"}
How do you retrieve it in JavaScript?
json_in_var={"":"some text"}
alert(json_in_var.)
I'm perplexed on this one, any help welcome!
It's an syntax error to refer to it with
json_in_var.
However, you can access it like this:
json_in_var[""]
Thanks for the quick replies. I've actually been able to solve this by using
alert(json_in_var.$t)
This is when retrieving Blogger feeds in json format. Could that be somehow proprietary? I´m gon try with my own scripts. Anyhoo, thanks for the help guys!