You can find the full payload specification here.

We also provide worked examples, and a sample javascript decoder.

This decoder is written in Java Script and may be freely used as example code. To inspect the code, open this link and inspect the Java Script source. Usually this is done with F12 in your browser.