Bridges-C++
3.4.4
Bridges(C++ API)
|
Functions | |
template<typename T > | |
std::string | JSONencode (const T &d) |
template<> | |
std::string | JSONencode< std::string > (const std::string &str) |
std::string | JSONencode (const char *str) |
std::string | JSONencode (const double &d, int precision=-1) |
std::string | JSONencode (const float &d, int precision=-1) |
|
inline |
|
inline |
|
inline |
|
inline |
encodes whatever C++ primary type: int, float, double, bool, unsigned long int into its basic proper JSON format.
This also works for std::string and char*: that is to say, for a string, it is escaped properly and surrounded by quotes
|
inline |