title: Convert a JSON Response to pdf - NodeJS
body: <p>When a get request is sent to: '<a href="http://localhost:4000/features" rel="nofollow noreferrer">http://localhost:4000/features</a>'
  There is a response with JSON Data which has HTML inside it.</p>
  
  <p>I need the contents of the field name and description to be saved as PDF</p>
  
  <p>Sample:</p>
  
  <pre><code>[{"_id":"5ad4951d0ba1c37c65818bc7","name":"Find your work faster","description":"&lt;p&gt;With an improved &lt;strong&gt;quick search&lt;/strong&gt;, searching through all your issues and projects will be nothing else but a breeze. Whether you know the full issue key, part of the issue name, or just have a distant memory of a project from a year ago, start typing the words, and we&amp;rsquo;ll do the rest for you. The quick search instantly shows the most relevant results, and refreshes them whenever you change your search term.&lt;/p&gt;\n\n&lt;p&gt;&lt;img alt=\"\" src=\"https://confluence.atlassian.com/jirasoftware/files/945521251/945528523/1/1518181922686/quicksearch.png\" style=\"height:400px; width:800px\" /&gt;&lt;/p&gt;\n\n&lt;p&gt;If you&amp;rsquo;ve already found what you were looking for, just treat quick search as a handy work diary. Click anywhere in the box to see the issues and projects you&amp;rsquo;ve been working on recently, and have the most important work always at your fingertips.&lt;/p&gt;\n\n&lt;p&gt;&lt;a href=\"https://confluence.atlassian.com/jirasoftwareserver/quick-searching-939938728.html\"&gt;Learn more&lt;/a&gt;&lt;/p&gt;\n","__v":0},{"_id":"5ad5ddddcd054b2b5b20143c","name":"Project sidebar","description":"&lt;p&gt;The project sidebar that we previewed in&amp;nbsp;&lt;a href=\"https://confluence.atlassian.com/jira/jira-6-4-release-notes-678561444.html\"&gt;JIRA 6.4&lt;/a&gt;&amp;nbsp;is here to stay. We built this new navigation experience to make it easier for you to find what you need in your projects. It&amp;#39;s even better, if you are using JIRA Agile: your backlog, sprints, and reports are now just a click away. If you&amp;#39;ve used the sidebar with JIRA Agile before, you&amp;#39;ll notice that cross-project boards, which include multiple projects, now have a project sidebar as well &amp;mdash;&amp;nbsp;albeit a simpler version.&lt;/p&gt;\n","__v":0}]
  </code></pre>
  
  <p>Can this be done in nodeJS?</p>