I'm using a service to load my form data into an array in my angular2 app. The data is stored like this:
arr = []
arr.push({title:name})
When I do a console.log(arr), it is shown as Object. What I need is to see it
as [ { 'title':name } ]. How can I achieve that?


console.log(JSON.stringify(arr))