The use of json api