# File lib/jwt/json.rb, line 7 def decode_json(encoded) JSON.parse(encoded) rescue JSON::ParserError raise JWT::DecodeError, 'Invalid segment encoding' end