added the possibility to also work with json obtained via the jawbone api