blob: 62034b864da6dc08a5ad3f86c5ed0fa66dad96d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef JSONHELPER_H
#define JSONHELPER_H
#include <stddef.h>
typedef struct {
double values[256];
char keys[256][32];
size_t count;
} JsonFloatMap;
int json_parse_float_map(const char *json, const char *target_key,
JsonFloatMap *result);
double json_get_float(const char *json, const char *key);
char *json_get_string(const char *json, const char *key);
#endif
|