#NEWLINE# def jwt_deser( val , sformat = 'json' ) : #NEWLINE# #INDENT# if ( sformat == 'urlencoded' ) : #NEWLINE# #INDENT# sformat = 'json' #NEWLINE# #UNINDENT# if ( sformat in [ 'dict' , 'json' ] ) : #NEWLINE# #INDENT# if ( not isinstance ( val , six . string_types ) ) : #NEWLINE# #INDENT# val = json . dumps ( val ) #NEWLINE# sformat = 'json' #NEWLINE# #UNINDENT# #UNINDENT# return JasonWebToken ( ) . deserialize ( val , val )