Logstash JSON parse error

Do not use a codec. Use a json filter. Something like

json { source => "message" target => "someField" }

The move the fields up to the root using something like this.