Hello All,
I am trying to save a histogram to a JSON object and I have gotten thus far:
...
hist->Draw();
TString json = TBufferJSON::ToJSON(hist);
...
I am now unsure about how to save this to a file.
I see the documentation has TBufferJSON::ExportToFile
function but can’t see any example of how to use it. Can anyone show me how to write this json to file?
Thanks
ROOT Version: 6.28/06
Platform: Linux
Compiler: