Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Codec should not accept invalid json {}{}

Open
#31 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
json, ruby
Domain
backend

Research direction

No source file or test is named in the issue. Start by reproducing the reported input in the logstash-codec-json plugin and locate the JSON decoding entry point; done means the combined payload is tagged _jsonparsefailure and the complete payload remains in the message field.

Written by the indexing model from the issue text.

Description

The codec should not accept this input:

{ "hello": "world" }{ "goodbye": "moon" }

The above is two json objects that, alone, are valid, but combined, are not.

Expected result: Logstash should tag this event as _jsonparsefailure and store the whole payload in the message field.

Actual result: in Logstash 5.x is that the first json object is accepted and the 2nd one is lost/ignored.

Dominant language
Ruby
Stars
26
Forks
27
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from logstash-plugins/logstash-codec-json

All issues in logstash-plugins/logstash-codec-json

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.