Ask HN: JsxToJson

1 points | by talkingtab 6 hours ago ago

1 comments

  • solardev an hour ago

    I think the power of JSX is in being able to mix content with code and logic. You can have loops, maps, embedded ternaries, function calls, etc. It's not all just static markup.

    If you just want a data markup language... why not regular XML? Then you can easily parse it to JSON, e.g. https://codebeautify.org/xmltojson/y24f6a4c0