Initial version of the JSON API