Utility class.
More...
#include <ParseUtils.h>
|
static int | getStringFromJSON (const char *data, const char *key, char *value, int size) |
| A very lightweight JSON parser to get the string value by key. More...
|
|
static int | getIntFromJSON (const char *data, const char *key) |
| A very lightweight JSON parser to get the integer value by key. More...
|
|
static double | getFloatFromJSON (const char *data, const char *key) |
| A very lightweight JSON parser to get the float value by key. More...
|
|
static bool | getBooleanFromJSON (const char *data, const char *key) |
|
static double ParseUtils::getFloatFromJSON |
( |
const char * |
data, |
|
|
const char * |
key |
|
) |
| |
|
inlinestatic |
A very lightweight JSON parser to get the float value by key.
A very lightweight JSON parser to get the boolean value by key.
- Parameters
-
data | - JSON string to parse |
key | - key to find |
value | - returned double value, .0 if key not found |
data | - JSON string to parse |
key | - key to find |
value | - returned boolean value. false if key not found |
static int ParseUtils::getIntFromJSON |
( |
const char * |
data, |
|
|
const char * |
key |
|
) |
| |
|
inlinestatic |
A very lightweight JSON parser to get the integer value by key.
- Parameters
-
data | - JSON string to parse |
key | - key to find |
value | - returned integer value, 0 if key not found |
static int ParseUtils::getStringFromJSON |
( |
const char * |
data, |
|
|
const char * |
key, |
|
|
char * |
value, |
|
|
int |
size |
|
) |
| |
|
inlinestatic |
A very lightweight JSON parser to get the string value by key.
- Parameters
-
data | - JSON string to parse |
key | - key to find |
value | - returned value (always as string) or NULL if just to check values'presence |
size | - size of the return buffer |
- Returns
- 1 if found 0 otherwise
The documentation for this class was generated from the following file: