A json object has a key lastLogin. Value of it is a string.
I am trying to print firstName John and Blake
$scope._users = [{
"User": {
"userid": "dummy",
"lastlogin": "{\"employees\":[{\"firstName\":\"John\"}, {\"firstName\":\"Blake\"}]}",
}
}];
https://jsfiddle.net/xu0vqmff/
Any help would be appreciated.
$scope._users[0]
is an example of an object (not JSON object).$scope._users[0].User.lastlogin
is an example of a JSON string. – Amadan Jul 9 '15 at 2:33