nbudin / react-blockly

A React component that embeds a Blockly visual programming editor.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable JSON format sidelong XML

arielshulman opened this issue · comments

Hey,
Thanks for the great job.
I was wondering if there is a way to enable JSON serialization system alongside the XML one?
As google advise, JSON is the future of serialization.

Thanks for the suggestion @arielshulman! I agree, this is important to add. I probably won't be able to get to it this week, but here's roughly what I'm thinking:

  1. Add initialJson and onJsonChange props alongside the existing initialXml and onXmlChange props.
  2. Deprecate the XML ones in the TypeScript definitions.
  3. Make a minor release (e.g. 7.2.0) with these changes.

If anyone has time to work on this this week, I'd gladly accept a PR! Otherwise I will try to get to it as soon as I can.

This is now released in 7.2.1!