jwt_add_grants_json

Add grants from a JSON encoded object string.

Loads a grant from an existing JSON encoded object string. Overwrites existing grant. If grant is NULL, then the JSON encoded string is assumed to be a JSON hash of all grants being added and will be merged into the grant listing.

@param jwt Pointer to a JWT object. @param json String containing a JSON encoded object of grants. @return Returns 0 on success, valid errno otherwise.

extern (C) nothrow @nogc
int
jwt_add_grants_json
(,
const(char)* json
)

Meta