Thanks. ``--format json`` causes the error without ``to_ary``. I got it.

I will move it to the base class after merging this pull request.