Answer:
Carboxylic acids react with diazomethane to produce methyl esters.
Explanation:
Diazomethane has a high reactivity and is used to produce methyl esters with carboxylic acid in a immediately reaction, carried out at room temperature in the absence of catalysts.
As we can see in the image below
The subproduct is Nitrogen; knowing this, we must be careful with the production of this gas, and do the process in a vented place