simple json API

actually, maybe I didn't