Decarboxylation usually requires a 6 membered "transition state" where the H of the acid is transferred to the O of a carbonyl group (ketone, ester etc) you get a cyclic movement of electrons to give CO2 and the enol of the carbonyl which tautomerises.
So beta carbonyl acids like acetoacetic acid.
See drawing. R can be alkyl, ester, even H, I think. Also aromatic, heteroaromatic etc.