JSON datatype associated functions.
◆ to_diffusion_json_string()
Get a stringified representation of the JSON diffusion value.
- Parameters
-
| value | the diffusion value |
| json_string | pointer to a pointer where the stringified JSON data will be stored |
| error | error populated if an error occurs. Can be NULL. |
- Returns
- true if the value is successfully read and the json_string pointer value is set to a pointer containing the stringified representation of the JSON diffusion value. False otherwise.
◆ write_diffusion_json_value()
| bool write_diffusion_json_value |
( |
const char * | json, |
|
|
const BUF_T * | buf ) |
Write a JSON value into a BUF_T for an update.
- Parameters
-
| json | value to be written into the BUF_T |
| buf | BUF_T to write the JSON value into |
- Returns
- true if the value was successfully written into the BUF_T. False will be returned if the provided JSON string is invalid JSON, or json or buf is NULL.