Anyone interested in collectively creating and supporting an open source JavaScript project to parse Jsx into Json?
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.
``` <Ducks sound="quack"> <Fred color="green" canfly=false /> <Ducks/> ```
JsxToJson() should produce:
```{ "Ducks": { "sound": "quack", "children": [ { "Fred": { "color": "green", "canFly": false } } ] } } ```
I suspect, but do not know, that there are many uses for such a package.
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 ...