Simple utility to convert an SVG path to JSON.