got json api working