Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to convert JSON to SVG? #7

Closed
ceremcem opened this issue Oct 17, 2018 · 2 comments
Closed

How to convert JSON to SVG? #7

ceremcem opened this issue Oct 17, 2018 · 2 comments

Comments

@ceremcem
Copy link

How can we convert the edited JSON back to SVG?

@elrumordelaluz
Copy link
Owner

hey @ceremcem thanks for the answer, I encourage you to use svgson-next which will be (probably later today or in the next days) the new major version of svgson for lot of reasons (bundle size, etc), included the one that have a method called stringify.

You could use it this way:

const { stringify } = require('svgson-next')
const svgsonObject = { /* ... */ }
stringify(svgsonObject)

Let me know in any case.

@ceremcem
Copy link
Author

svgson-next nicely solves the case, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants