Print out error when unable to parse JSON