title: How to convert a SVG into JSON which can be saved in backend and then again call the JSON and convert it to SVG
body: <p>As i was working on a developing tool and there were many svg's in the playground so that the dom becoming heavy and like to save the svg's in the back-end and when ever the need i need to drop it in the playground.......
  Can anyone has a solution...........</p>
  
  <p>For example i'm giving a SVG</p>
  
  <pre><code>&lt;svg width="300" height="200"&gt; &lt;polygon points="100,10 40,198 190,78 10,78 160,198"style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;"/&gt;&lt;/svg
  </code></pre>