added returnJson method
Merge branch 'development' into gh-pages