Initial implementation of JSON APIs

Using openclerk/apis component