How to use Json Web Tokens for RESTful API?

I am making an API for my company (Travel Agency), I am following the Webinar “DB Communication with Xojo”, this Webinar is exactly what I need, except the security authentication implementation, please does anyone have implemented this Json Web Tokens?

here are some information I found, but I don’t know how to put them together.

https://www.youtube.com/watch?v=rPtC-bl5kaQ
http://jwt.io/
http://www.sitepoint.com/using-json-web-tokens-node-js/