fix: handle trailing garbage after a valid object, e.g. '{"foo":42},meh'