PyJWT does not support all valid JSON types as the payload.
Expected Result
strs, ints, floats and lists (even better Sequences) should be able to encoded in the payload of the JWT as they are valid JSON types (string, number, object and array)
Actual Result
Raises TypeError: Expecting a mapping object, as JWT only supports JSON objects as payloads.
PyJWT does not support all valid JSON types as the payload.
Expected Result
str
s,int
s,float
s andlist
s (even betterSequence
s) should be able to encoded in the payload of the JWT as they are valid JSON types (string, number, object and array)Actual Result
Raises
TypeError: Expecting a mapping object, as JWT only supports JSON objects as payloads.
Reproduction Steps
System Information