Add simple json api
Merge pull request #4 from katsuma/api

Add simple json api