Hi Ajay,
if you map the JSON to mendix entities / objects, you can create a page with the layout you desire.
After that you can create a PDF of the page with this and return it to the user.
Module: https://marketplace.mendix.com/link/component/211553
Documentation: https://docs.mendix.com/appstore/modules/document-generation/