I'm trying to write a script which checks an invalid JSON string and then throws an error, which I in turn can log in the console. I'm using promises for this (in order to better understand how they work).I'm trying to write a script which checks an in