Fix the incorrect JSONEncoder.