added detection of code variable in .json() method to detech if only object provided. defaults to code 200
Merge branch 'master' of github.com:jwerle/pineapple