[N+:1]([C:4]1[CH:9]=[CH:8][C:7]([C:10]2[O:11][C:12]3[C:18]([C:19]([OH:21])=[O:20])=[CH:17][CH:16]=[CH:15][C:13]=3[CH:14]=2)=[CH:6][CH:5]=1)([O-:3])=[O:2].O1CCC[CH2:23]1>>[N+:1]([C:4]1[CH:9]=[CH:8][C:7]([C:10]2[O:11][C:12]3[C:18]([C:19]([O:21][CH3:23])=[O:20])=[CH:17][CH:16]=[CH:15][C:13]=3[CH:14]=2)=[CH:6][CH:5]=1)([O-:3])=[O:2]A diazomethane-ether solution (prepared from 5.0 g of nitrosomethylurea) is added to a solution of 6.0 g of 2-(4-nitrophenyl)benzofuran-7-carboxylic acid in 60 ml of tetrahydrofuran and the mixture is stirred at room temperature for 1 hour. The reaction mixture is evaporated to remove solvent and the residue is dissolved in ethyl acetate. The solution is washed with water, dried and evaporated to remove solvent. The residue is washed with ethyl acetate and dried to give 3.82 g of methyl 2-(4-nitrophenyl)benzofuran-7-carboxylate as pale brown powder.