Added the initial cut of the JSON API