Message from JavaScript discussions

July 2018

— Instead of:
Just do:


Is your json already an array of objects? Then u can just do

JSON.parse(JSON.stringify(json)).map((obj) => console.log(obj));

— Why stringify and parse?

— Parse should be enough but I mostly use stringify also. Works safer for me that way

— Slow

— And no reason to do it

— I had some cases where It didnt work without stringifying it.

— Horrible, figure out the actual problem first then

— Wait ill send an example

— [Full Stack Blues: Exploring Vulnerabilities In The MEAN Stack] is good,have a look at it!

Message permanent page

— Unexpected token C in JSON at position 0

— Do you know what could cause this?