liblucy
liblucy copied to clipboard
Add option for outputting to JSON
This would be great for building tools with Lucy - for instance a browser-based visualiser.
Is there a standard format for what this JSON looks like? Are there any existing tools that consume the JSON format?
@matthewp None - I'm imagining that for now, we'd copy the XState format (i.e. the first argument to createMachine) in JSON form.
if lucy exports a xstate machine, we could use its visualizer out-of-the-box, couldn't?
I'd prefer to output to JSON so that you wouldn't need an intermediate Babel transpilation step.