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?
Try this (assuming jsencodeddata is a JSON string):
That will convert the JSON string into an actual array of objects.