Fix json codec to accept json on a single line
Merge pull request #710 from logstash/json-codec-fix

Fix json codec