|
SuperTuxKart
|
A class to manage json data. More...
#include <hardware_stats.hpp>

Public Member Functions | |
| Json () | |
| Constructor. | |
| const std::string | sanitize (std::string value) |
| template<typename C > | |
| void | add (const std::string &key, const C &value) |
| Adds a key-value pair to the json string. | |
| void | add (const std::string &key, const std::string &value) |
| Specialisation for adding string values. More... | |
| void | add (const std::string &key, const char *s) |
| Specialisation for adding character pointers. More... | |
| void | finish () |
| std::string | toString () |
| Returns the json data as one string. | |
Private Attributes | |
| std::string | m_data |
| The accumulated json data. | |
A class to manage json data.
|
inline |
Specialisation for adding character pointers.
String values in are enclosed in "".
|
inline |
Specialisation for adding string values.
String values in are enclosed in "".