Logstash JSON codec

Dear Team,
I am working on processing a JSON file and need some clarification. I read earlier threads and tried using codecs (json, json_lines and json as filter too) but as output i am getting individual lines of the file and below error:

JSON parse failure. Falling back to plain-text {:error=>#<LogStash::Json::ParserError: Unexpected end-of-input: expected close marker for OBJECT (from [Source: [B@1edd238a; line: 1, column: 24])
at [Source: [B@1edd238a; line: 1, column: 51]>, :data=>" {", :level=>:error}

Please let me know what else is require here, the JSON file is a valid one.

logstash conf:
path => "inputfile"
type => "input"
codec => "json"


Thanks & Regards,

I tried uploading JSON file into elasticsearch and there also i got parsing error, PFB:

It looks like JSON file needs some attention, i am working on it. In the mean time please let me know if we can handle such scenarios in logstash.

  "caused_by": {
     "type": "parse_exception",
     "reason": "malformed, expected settings to start with 'object', instead was [VALUE_STRING]"

Well, what does the input look like?