Extract invalid json fragment within the exception message

Fix #217