In addition to returning SVG document contents, a tag, and a tag, this pull request adds the ability to return a JSON Array of the SVG paths, getJSON(). This allows users to create their own SVGs using the given paths, and allows for easier data manipulation. The information returned from the new function is similar to what is returned from the other functions. It holds the width and height data of the svg, and the data of each of the svg's created paths.
The structure of the resulting array is as follows:
In addition to returning SVG document contents, a tag, and a tag, this pull request adds the ability to return a JSON Array of the SVG paths,
getJSON()
. This allows users to create their own SVGs using the given paths, and allows for easier data manipulation. The information returned from the new function is similar to what is returned from the other functions. It holds the width and height data of the svg, and the data of each of the svg's created paths.The structure of the resulting array is as follows: