completed initial json api