Adding asJson option
Merge branch 'master' of github.com:Block8/b8framework