Fix JSON parse on strings that look like incomplete objects