update json api
Merge branch 'devel' of https://github.com/panizza/collject into devel