starting json api implementation