Replace to_json with as_json