akash akash - 1 year ago 67
AngularJS Question

I want only string value from JSON.Stringify


It gives this result:


What I want:


Answer Source

You don't need to stringify it.


Attendances.data is an array of JSON objects, that each have an EmpNTLogin property. Attendances.data[0] gets the first JSON object in the array, and .EmpNTLogin gets the value associated with the EmpNTLogin property, in this case "Guatam".

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download