Invalid JSON causes program to die

This allows Travis to detect failing tests