javascript - How to get item from JSON object when there is only one item? -


i have following json:

var x = [{"email":"info@test.nl"}]

how email in javascript? x.email doesn't work me.

bart

you need reference element of array, access property.

var x = [{"email":"info@test.nl"}]  console.log(x[0].email)


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -