Weird line. So he got a gut shot, couple of more outs on his K (and his J, but he probably didn't count those).. he tried to bluff having the flush after the turn, you didn't buy it, tried another bluff on the river which only made you commit to 1/5 so wasn't very convincing and you called it.

Hm, sounds about right?