Element in the array to give to the packer. More...
#include <gnunet_json_lib.h>
Data Fields | |
const char * | field_name |
Name of the field to pack. More... | |
json_t * | object |
Object to pack. More... | |
bool | allow_null |
True if a NULL (or 0) argument is allowed. More... | |
bool | final |
True if last element in the spec array. More... | |
Element in the array to give to the packer.
Definition at line 673 of file gnunet_json_lib.h.
const char* GNUNET_JSON_PackSpec::field_name |
Name of the field to pack.
If (and only if) object contains an actual JSON object, NULL will pack the keys in the top level of the resulting JSON object rather than under a field.
Definition at line 680 of file gnunet_json_lib.h.
json_t* GNUNET_JSON_PackSpec::object |
Object to pack.
Definition at line 685 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_pack_().
bool GNUNET_JSON_PackSpec::allow_null |
True if a NULL (or 0) argument is allowed.
In this case, if the argument is NULL the packer should return NULL and the field should be skipped (omitted from the generated object) and not be serialized at all.
Definition at line 693 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_pack_allow_null().
bool GNUNET_JSON_PackSpec::final |
True if last element in the spec array.
Definition at line 698 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_pack_().