Add json api for activated