diff options
Diffstat (limited to 'tools/jsonhelpers.h')
-rw-r--r-- | tools/jsonhelpers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/jsonhelpers.h b/tools/jsonhelpers.h new file mode 100644 index 0000000..852d94d --- /dev/null +++ b/tools/jsonhelpers.h @@ -0,0 +1,17 @@ +#ifndef __JSONHELPERS_H +#define __JSONHELPERS_H + +#include <string> +#include <sstream> +#include <jansson.h> + +using namespace std; + +int JsonGetInteger(json_t *jNode, string name); +float JsonGetFloat(json_t *jNode, string name); +string JsonGetString(json_t *jNode, string name); + +string FloatToString(float f); +string IntToString(int i); + +#endif //__JSONHELPERS_H
\ No newline at end of file |