implemented json api concern