I have this array:
{tag: "teste"}
How do I save the word test in a variable?
I have this array:
{tag: "teste"}
How do I save the word test in a variable?
This {tag: "teste"}
is a json object, not an array. If you get an object named xpto with this value, then just look for the field name: var a = xpto.tag
.
Hugs and follow the leader.