Add a check in jwt.encode for data type. Raise an error if it's not a mapping type. It help avoiding typos errors
Merge pull request #12 from Lothiraldan/master

Add a check in jwt.encode for data type.