In the following reaction sequence, the compound J is an intermediate.
J(C9H8O2) gives effervescence on treatment with NaHCO3 and a positive Baeyer's test.
The reaction sequence is