hi animesh, that would only be the case if you are trying to retrofit htmx on top of an existing JSON API
if it is greenfield development, it is much better to simply return SSR HTML and avoid that complexity
you can join the discord for more immediate help:
https://htmx.org/discord