title: How to create JWT in Javascript
body: <p>I am new to JWT, I am trying to create a simple JWT in javascript, send it to a controller (using web-api), check it in sql database.
   when I googled the net I found a examples like:
  //HEAD</p>
  
  <pre><code>  {"typ":"JWT",
            "alg":"HS256"}
  </code></pre>
  
  <p>//claims</p>
  
  <pre><code>{
    "Id": 445566,
    "name": "Meme Jhon",
    "password": "ticktack"
  }
  </code></pre>
  
  <p>//and signature.</p>
  
  <p>I want to create in Javascript my First JWT but i feel something is missing.. what is the full structure? it's not seem logical to start only with the head (like example above..)I need a full example or explaination or a link to a full example. 
  Thank you</p>