4 ms·
This is great! And nicely written--it would be very easy to modify this to format things differently. Eventually, it would be cool to have the conversion go bot
by napoleond 13y ago
This is great! And nicely written--it would be very easy to modify this to format things differently. Eventually, it would be cool to have the conversion go both ways. That way it could be incorporated in a CMS (arbitrary structured content being passed around as JSON but displayed and edited in HTML).
- marianoguerra 13y agosince css classes tell you what's inside you can recover it completely, also I was thinking on using HTML5's data- to store the data there too. the next next step would be to provide in place edition with validation :)
- napoleond 13y agothe next next step would be to provide in place edition with validation :) Definitely! Take a look at http://createjs.org/--it http://createjs.org/--it will probably help (in fact, I've been using it for a different project and if I have time I might be submitting a pull request to you in the next week or so).
- marianoguerra 13y agothat would be cool, let's track it here: https://github.com/marianoguerra/json.human.js/issues/7 https://github.com/marianoguerra/json.human.js/issues/7