I thinking how I can design response to frontend part of website.
I want to know which solution and why is better ?
JSON will be "better" in the vast majority of cases.
The information transferred from the server will be smaller.
The only exception to this is if you want to hide the logic used to generate the html from the public, but even in that case I'd favor sending JSON for the flexibility advantage.