delete old encoder and decoder and add new JsonEncoder JsonDecoder