This doesn't work -- when I access `self.show_captions` it returns a Python bool rather than the `Boolean` object itself, so I get an error. Is there some other way to call `to_json`?