shouldn't that be `to_json` instaed of `to_str`?