• EditorBugs
  • Old version JSON files are no longer opening in newer Spine versions

Problem statement

Describe: 1) I have JSON files exported from Spine 3.8.97 and I was trying to open it in 4.2.37 (or any other latest versions) but it is not opening and throwing error. Earlier I could open any olde JSON file into newer version of Spine

Editor information

3.8.97

Spine Launcher 4.1.11
Esoteric Software LLC (C) 2013-2022 | http://esotericsoftware.com
Windows 10 Pro amd64 10.0
NVIDIA Corporation, NVIDIA GeForce RTX 3060/PCIe/SSE2, 4.6.0 NVIDIA 560.94
Starting: Spine 4.2.37 Enterprise
Spine 4.2.37 Enterprise
Licensed to: Nolimit City Stockholm AB <licenses@nolimitcity.com>
WARNING: Launcher out of date. Reinstall to improve performance.
Started.
OpenAL 1.1, Default audio device
ERROR: Error importing skeleton data file: D:\GitHub\dumpsterfire\resources\spine\fsScatter.json
JSON version: 3.8.97
Spine version: 4.2.37
The Spine version must be the same version that exported the data file.
[error] Error reading file: D:\GitHub\dumpsterfire\resources\spine\fsScatter.json
   at s.aab._(_:197)
   at s.vSr._(_:408)
   at s.vSr.I(_:378)
   at s.vSr.S(_:307)
   at s.vSr._(_:311)
   at s.CWm._(_:1101)
   at s.vSr.I(_:310)
   at s.Tan.F(_:444)
   at s.eCr._(_:91)
   at s.yGd._(_:28)
   at s.ilO._(_:188)
   at s.ilO._(_:158)
   at com.badlogic.gdx.scenes.scene2d.ui.Button.F(_:125)
   at s.GNO._(_:93)
   at s.Tao._(_:88)
   at s.qqd._(_:71)
   at s.PrA.F(_:354)
   at s.SHC.F(_:124)
   at s.nBZ.F(_:104)
   at s.FqY._(_:46)
   at s.nBZ._(_:35)
   at s.DIO.run(_:251)
   <events>
Cause: s.Ser: Error reading animation: landing
   at s.DSi._(_:414)
   at s.OsB._(_:118)
   at s.aab._(_:168) ...
Cause: [error] Invalid timeline type for a slot: color (fireParticles)
   at s.DSi._(_:772)
   at s.DSi._(_:412) ...
Related Discussions
...

The error you're encountering is due to the fact that the JSON file exported from Spine 3.8.97 is not directly compatible with Spine 4.2.37. Spine JSON files are not backward compatible, meaning you cannot open a JSON file from an older version in a newer version without potential issues. To resolve this, you should open the JSON file in the same version of Spine that it was exported from (3.8.97), save it as a Spine project, and then open that project in the newer version of Spine. Alternatively, you can use the JsonRollback tool to convert the JSON to a format compatible with the newer version, but this is not always reliable for all features.

But earlier it was working fine. I could open any old JSON into newer version of Spine.
I am aware that JSON exported from newer version can not be opened into older version of Spine.

  • Harald ответили на это сообщение.

    Prakash But earlier it was working fine. I could open any old JSON into newer version of Spine.

    The Spine Editor never supported importing older exported skeleton data json files. The fact that it did not break was more due to luck, not that it was supported. Please open the older assets in the respective Spine Version. Note that switching Spine Editor versions is very easy via the launcher.