Skip to content

Replace yajl-ruby with the json gem for JSON handling - #50

Merged
kenhys merged 2 commits into
masterfrom
yajl-to-json
Jun 12, 2026
Merged

Replace yajl-ruby with the json gem for JSON handling#50
kenhys merged 2 commits into
masterfrom
yajl-to-json

Conversation

@Watson1978

Copy link
Copy Markdown
Contributor

Since the yajl-ruby gem depends on a deprecated Ruby C API, it cannot be installed with Ruby 4.1.

@Watson1978

Copy link
Copy Markdown
Contributor Author

Remains as a keyword for compatibility

$ grep -i "yajl" -r *
README.md:|encoder|JSON encoder (`yajl`, `json`)|`json`|
lib/fluent/plugin/out_pgjson.rb:    desc "JSON encoder (yajl/json)"
lib/fluent/plugin/out_pgjson.rb:    config_param :encoder, :enum, list: [:yajl, :json], default: :json # NOTE: Contains yajl for backward compatibility
lib/fluent/plugin/out_pgjson.rb:                 when :yajl, :json

Since the yajl-ruby gem depends on a deprecated Ruby C API,
it cannot be installed with Ruby 4.1.

Signed-off-by: Shizuo Fujita <fujita@clear-code.com>
Comment thread README.md Outdated
Co-authored-by: Kentaro Hayashi <hayashi@clear-code.com>
@Watson1978
Watson1978 requested a review from kenhys June 12, 2026 01:44
@kenhys
kenhys merged commit dfbd5ef into master Jun 12, 2026
36 checks passed
@kenhys
kenhys deleted the yajl-to-json branch June 12, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants