summaryrefslogtreecommitdiff
path: root/tools/jsonhelpers.h
blob: 852d94d6823c4c31eb515b3e873defe67eba7b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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