libpressio 0.93.0
|
JSON serialization and deserialization for options structures. More...
Go to the source code of this file.
Functions | |
struct pressio_options * | pressio_options_new_json (struct pressio *library, const char *json) |
char * | pressio_options_to_json (struct pressio *library, struct pressio_options const *options) |
JSON serialization and deserialization for options structures.
struct pressio_options * pressio_options_new_json | ( | struct pressio * | library, |
const char * | json | ||
) |
Converts JSON to a pressio_options structure. Intended for serialization and deserialization and the format is unstable. boolean entries in the JSON are not supported.
[in] | library | optional argument, if the parse fails, the error message is stored in the library object |
[in] | json | c-style string containing json to be deserialized to a pressio_options type |
char * pressio_options_to_json | ( | struct pressio * | library, |
struct pressio_options const * | options | ||
) |
Converts pressio_options to JSON structure. Intended for serialization and deserialization and the format is unstable. Entries of type pressio_option_userptr_type are omitted.
[in] | library | optional argument, if the parse fails, the error message is stored in the library object |
[in] | options | the options structure to serialize |