Hello,
I'm having troubles with parsing my JSON object. Below you'll find my JSON string:
{"email":{"invalid":"wrong email"}}
I can get 'wrong email' using javascript by simply executing alert(email.invalid). However, the first element, in this case 'invalid', hasn't always got the same name, so I'm looking for an alert(email.firstChild) kind of code.
I always want to get the value of the first element in my JSON object 'email'.
Can somebody please help me?
Thanks in advance,
Dimitri