modified some changes for json get and delete