CombineHarvester
JsonTools.cc File Reference
#include "CombineHarvester/CombineTools/interface/JsonTools.h"
#include <fstream>
#include <string>
#include "boost/algorithm/string.hpp"

Go to the source code of this file.

Namespaces

 ch
 

Functions

Json::Value ch::ExtractJsonFromFile (std::string const &file)
 Extracts a Json::Value from the specified input file. More...
 
Json::Value ch::ExtractJsonFromString (std::string const &str)
 Extracts a Json::Value from the given input string. More...
 
void ch::UpdateJson (Json::Value &a, Json::Value const &b)
 Updates the values in one json from the values in another. More...
 
Json::Value ch::MergedJson (int argc, char *argv[])
 Create a single merged Json::Value from a mixture of json files and json-formatted strings. More...
 
Json::Value ch::MergedJson (std::vector< std::string > const &vec)
 Create a single merged Json::Value from a mixture of json files and json-formatted strings. More...