Collective Project: JsxToJson<p>Anyone interested in collectively creating and supporting an open source JavaScript project to parse Jsx into Json?<p>Why: I find it much easier to reason about and read Jsx instead of JSON. Yet JSON is a much better syntax for passing data around.
Goal: Develop a small project which parses JSX and generates JSON.<p>```
<Ducks sound="quack">
<Fred color="green" canfly=false />
<Ducks/>
```<p>JsxToJson() should produce:<p>```{
"Ducks": {
"sound": "quack",
"children": [
{
"Fred": {
"color": "green",
"canFly": false
}
}
]
}
}
```<p>I suspect, but do not know, that there are many uses for such a package.<p>And yes, there is For example, threejs uses a syntax that could easily be converted to JSON, which could (perhaps easily) be generated by Jsx. If you are interested, contact arthurgar nospace banzo@g also no space mail.com. Or if you already have something ...