Documents implement a .to_json method