Open
Description
Issue Summary
Stack level too deep error when calling to_json on a response object
This is a duplicate of #423 which was closed due to "no activity"
Steps to Reproduce
- Call to_json on any instance of a class that inherits from Domain
@childish-sambino added a fix to the closed ticket which works for me if I add it to domain.rb
def as_json(*)
@properties
end
Code Snippet
$twilio.api.account.messages.list.to_json
SystemStackError: stack level too deep
from (irb):6
Technical details:
- twilio-ruby version: 5.53.0
- ruby version: 2.5.1