json: remove unnecessary dup/freeze in serialization (#16213) (#16253)

(cherry picked from commit 92909cb1c4)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-06-24 12:21:13 -07:00 committed by GitHub
parent a42c71a904
commit a5b7d2bfad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,7 +33,7 @@ module LogStash
end
def jruby_dump(o, options = {})
encoding_normalized_data = normalize_encoding(o.dup).freeze
encoding_normalized_data = normalize_encoding(o)
# TODO [guyboertje] remove these comments in 5.0
# test for enumerable here to work around an omission in JrJackson::Json.dump to