Making sure that when a invalid json source is given, the app fails