can you use `.to_json` instead? To me using `._doc` instead signals something hacky's going on, which it isn't really in this case