class for jsonmapper