rebuild json module
implement delete function