Implement initial JSON API