1 #ifndef __JSON__JPRINTER__ 
    2 #define __JSON__JPRINTER__ 
   15 namespace JPP { 
using namespace JSON; }
 
   54       if (pos != string::npos) {
 
   56         if (js[key.substr(0, pos)].is_array()) {
 
   58           for (
const auto& element : js[key.substr(0, pos)]) {
 
   59             (*this)(out, element, key.substr(pos + 1));
 
   64           (*this)(out, js[key.substr(0, pos)], key.substr(pos + 1));
 
   67       } 
else if (key != 
"") {
 
   71         out << setw(
WIDTH) << js[key.substr(0, pos)] << 
' ';
 
   73         if (pos != string::npos)
 
   74           (*this)(out, js, key.substr(pos + 1));
 
   80         out << setw(
WIDTH) << js << endl;
 
Auxiliary data structure for alignment of data. 
 
std::ostream & operator()(std::ostream &out, const JSON::json &js, const std::string &key) const 
Auxiliary method to print (part of) JSon data. 
 
JPrinter()
Defaut constructor. 
 
Auxiliary data structure to print (part of) JSon data.