Utility for extracting JSON-compatible strings, numbers or arrays of numbers in text data.
More...
|
template<class T > |
static void | readTree (T &tree, std::istream &istr) |
| Reads and parses a JSON file. More...
|
|
template<class T > |
static std::ostream & | treeToStream (std::ostream &ostr, const T &tree, const drain::SprinterLayout &layout=drain::Sprinter::jsonLayout, short indent=0) |
| Write a tree into an output stream using JSON layout by default. More...
|
|
static void | readValue (std::istream &istr, Castable &v, bool keepType=false) |
| Read a value (JSON syntax). Read stream until a value has been extracted, with type recognition.
|
|
static void | readValue (const std::string &s, Castable &v, bool keepType=false) |
| Read value (JSON syntax). Read stream until a value has been extracted, with type recognition. More...
|
|
static void | readArray (const std::string &s, Castable &v) |
| Given comma-separated string of values, assign them to variable of minimum compatible type.
|
|
Utility for extracting JSON-compatible strings, numbers or arrays of numbers in text data.