DEV Community

Discussion on: Parsing JSON with Node.js

Collapse
 
avalander profile image
Avalander

Why would you want to do that, though? Wrapping the operation into a promise may delay its execution, but when it's executed, it will run in the main thread, like everything else, and nothing else will run until it finishes parsing the json string.