Added json api

Resolves #6 
lame.  looks like it's a mongoskin issue