rstudio/rstudio — comment on commit 8e45b8fc2fb967eef37c77e7884929a90656ee2b
File: src/cpp/core/include/core/json/JsonRpc.hpp line 658
By jjallaire:

I think this should return a const json::Value& (since the result can be of arbitrarily large size -- e.g. a source document). The caller can if they like make a copy but the const & at least provides a way to explicitly opt out of the copy.