scratchfoundation / scratch-blocks

Scratch Blocks is a library for building creative computing interfaces.
https://scratch.mit.edu/developers
Apache License 2.0
2.6k stars 1.39k forks source link

How to obtain XML through JSON files #3136

Open zhllucky opened 10 months ago

zhllucky commented 10 months ago

I obtained a JSON file for the block code through my backpack in Scratch. At this point, I wanted to directly parse this JSON file in Scratch blocks, but I found that Scratch blocks does not accept this type and can only convert it to XML through JSON, but this method is not available.

mxmou commented 9 months ago

The code for converting between these formats is in scratch-vm.