• Editor
  • Convert edited JSON to Binary file format

  • Modifié
Related Discussions
...

Hi everyone,

Is it possible to convert a JSON file (that was edited by the programmers) to a Binary file format?

Thanks in advance!
Vlad

I've tried that but it gives me the error "An error occured while importing the skeleton.Please be sure to choose a valid skeleton JSON or binary file."

If the edited JSON file can't be imported into Spine, then the edit is likely wrong. Can you post the edited JSON file?

The JSON file is to large to be uploaded on forum, it has about 60 mb.Any other option where to upload it, or should i use a online uploading solution?

You can show your spine.log for why the JSON can't be exported. Please include the entire log, not just the error portion. The forum will automatically remove your name and email address.

Note you'll need to import the JSON into the same version of Spine that exported it.

If you are doing this a lot, you can do it from the CLI:
Command line interface - Spine User Guide: Export
The input file can be your JSON file instead of a Spine project. For example:

Spine -i your.json -o exported.skel -e export.binary.settings.json

If you are using 4.0 you can specify binary to use default settings for the binary export, so you don't need a binary export settings JSON file:

Spine -i your.json -o exported.skel -e binary

However, you probably want to import the JSON data into a Spine project and keep the Spine project file. JSON and binary data are not intended for long term storage. See here:
Versioning - Spine User Guide: File storage

8 jours plus tard

Thank you so much for all the responses! Luckily the problem was solved by the programmers by rebuilding the parsing or something.