Loads a header from an existing JSON encoded object string. Overwrites
existing header. If header is NULL, then the JSON encoded string is
assumed to be a JSON hash of all headers being added and will be merged
into the header listing.
@param jwt Pointer to a JWT object.
@param json String containing a JSON encoded object of headers.
@return Returns 0 on success, valid errno otherwise.
Add headers from a JSON encoded object string.
Loads a header from an existing JSON encoded object string. Overwrites existing header. If header is NULL, then the JSON encoded string is assumed to be a JSON hash of all headers being added and will be merged into the header listing.
@param jwt Pointer to a JWT object. @param json String containing a JSON encoded object of headers. @return Returns 0 on success, valid errno otherwise.