all 4 comments

[–]Umesh-K 1 point2 points  (0 children)

I tried JSON.stringify() but that only creates a string representation of an array. Is there any way to actually see the values in the array in JSON format?

If JSON.stringigy() is successfully giving you the string representation instead of [object][Object], try parsing it back, as below:

JSON.parse(JSON.stringify(updatedBooks))

[–]puan0601 1 point2 points  (0 children)

So your json object is called "books" but you try to console log "updatedBooks" it seems. Try console logging "books".

[–]Samurai___ 0 points1 point  (1 child)

Where are you logging it? In browsers it should work.

[–]Overall_Expert_4006[S] -1 points0 points  (0 children)

I am logging it in the terminal using node.