add check for json filter to see if input codec already loaded the json

originally discovered to be incompatible when using the json input codec, as it has already called `LogStash::Json.load` on the whole input. (ref: https://github.com/elasticsearch/logstash/issues/2199)
This is Java specific code, maybe a simple check if the `source.is_a?(Hash)` would work?