Component of the AP-1 transcription factor that represses transactivation mediated by the Jun family of proteins. Involved in a variety of transcriptional responses associated with AP-1 such as UV- induced apoptosis, cell differentiation, tumorigenesis and antitumogeneris. Can also function as a repressor by recruiting histone deacetylase 3/HDAC3 to the promoter region of JUN. May control transcription via direct regulation of the modification of histones and the assembly of chromatin. {ECO:0000269|PubMed:12707301, ECO:0000269|PubMed:12903123, ECO:0000269|PubMed:16026868, ECO:0000269|PubMed:16518400}. This is the function of Ensembl gene identifier ENSG00000140044 (JDP2, Jun dimerization protein 2).