question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Convert JSON to HTML server-side

See original GitHub issue

So first of all, thank you @artf for this amazing project.

I have a question: Is it possible to easily convert the components-JSON to HTML on the server-side (in a Node.js environment)? If it is possible, can you give me a hint how to achieve this?

On the client-side it’s quite straightforward: I can get the components-JSON (JSON.stringify(editor.getComponents());) and save it to my database. Then I can reuse my components later (editor.setComponents();) and get the HTML (editor.getHtml();) to show it in the browser. In my case though, I have to do it on the server-side.

Any help would be greatly appreciated!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
anlumocommented, Jul 29, 2021

Yes, if you have any kind of interactive content, that probably wouldn’t work. Fortunately that’s not the case for my application.

1reaction
bgrand-chcommented, May 11, 2021

Hello,

For future questions or technical issues, which aren’t bugs, GitHub’s Discussions tab is the place to be.

Don’t forget to close this issue if it is resolved or write a new detailed message in Discussions -> Q&A category (and close this issue).

Thank you for your understanding.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to convert JSON to HTML - Educative.io
There are two methods to convert JSON to HTML, one is through using online converters and the other is through using JSON functions....
Read more >
JSON HTML - W3Schools
JSON can very easily be translated into JavaScript. ... myObj = JSON.parse(this. ... Make the HTML table based on the value of a...
Read more >
How to send a JSON object to a server using Javascript?
How to Generate or Send JSON Data at the Server Side using Node.js ? 2. How to parse JSON object using JSON.stringify() in...
Read more >
How to Send and Receive JSON Data to and from the Server
Send JSON Data from the Server Side · Create a new object for storing the response data. · Convert the new object to...
Read more >
Convert json data to a html table - javascript - Stack Overflow
Convert json data to a html table [closed] · I think trirand.com/blog is what you are looking for. It takes JSON and converts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found