|
HIPO
4.3.0
High Performance Output data format for experimental physics
|
Simple JSON parsing and value extraction utility. More...
#include <jsonutil.h>
Public Member Functions | |
| jsonutil () | |
| virtual | ~jsonutil () |
| void | set (const char *json_string) |
| Parse a JSON string into the internal object. More... | |
| bool | hasObject (const char *var) |
| Check whether a key exists in the parsed JSON. More... | |
| float | getFloat (const char *var) |
| Get a float value by key from the parsed JSON. More... | |
Simple JSON parsing and value extraction utility.
Wraps nlohmann::json to provide a minimal interface for parsing JSON strings and extracting values by key.
Definition at line 57 of file jsonutil.h.
|
inline |
Definition at line 65 of file jsonutil.h.
|
inlinevirtual |
Definition at line 66 of file jsonutil.h.
|
inline |
Get a float value by key from the parsed JSON.
| var | Key name |
Definition at line 78 of file jsonutil.h.
|
inline |
Check whether a key exists in the parsed JSON.
| var | Key name to check |
Definition at line 74 of file jsonutil.h.
|
inline |
Parse a JSON string into the internal object.
| json_string | JSON formatted string to parse |
Definition at line 70 of file jsonutil.h.