I have a json object(jsencodedata) that is printed in Javascript like that:
document.write(jsencodedata);
It prints:
[{"user":"John","Pass":"abc123"},{"user":"John2","Pass":"abcdef"}]
My question is how to get only the first user or password or only the second one? I'm new to this, so please excuse me for the stupid question?
var arr = JSON.parse( jsencodedata );, and thenarr[0]to get the first object, andarr[1]to get the second object.