well I receive this kind of JSON data from an external server
{'mydata':[{'id':1012, 'username':'foo', 'password':'bar'}]}
now my problem is i can’t traverse the id now how i can traverse it?. I think the extra [] makes the problem as i check it with this. http://jsfiddle.net/laupkram/ceL2C/
now is there any possibility that i can still traverse the data in this kind of JSON structure?
Since the data is in an array, you simply need to refer to it as you would data in an array:
Alter your code to that, and it will work fine.
DEMO