riched up that api
Merge pull request #13 from adamzaninovich/json-api

riched up that api