You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the 1.4.3 seems to have fixed an issue with subclasses of Hash, it seems to have broken to_json entirely for subclasses of String, which previously worked ok.
Easy to replicate:
>> require 'json/ext'
=> true
>> JSON::VERSION
=> "1.4.3"
>> class X < String; end
=> nil
>> X.new("abc").to_json
SystemStackError: stack level too deep
from (irb):4:in `to_json'
from (irb):4
In our case this was showing up when serializing a Sequel::SQL::Blob value.
The text was updated successfully, but these errors were encountered:
While the 1.4.3 seems to have fixed an issue with subclasses of Hash, it seems to have broken to_json entirely for subclasses of String, which previously worked ok.
Easy to replicate:
In our case this was showing up when serializing a Sequel::SQL::Blob value.
The text was updated successfully, but these errors were encountered: