Skip to content

how to auto detect version of json format? #173

@ryokun0101

Description

@ryokun0101

I accidentally mixed json data files of different version with each other. Now I don't know how to auto sort them into different folders. Is there any script or tool to auto detect and copy or update them to specific folder/ label?

For example, I mixed 2 files of different engine format version and cannot recognize the version or framework of them:

`{"mc":{"at01_5":{"frameRate":20,"labels":null,"frames":[{"res":"50000","x":-24,"y":-62},{"res":"50001","x":-23,"y":-59},{"res":"50002","x":-25,"y":-56},{"res":"50003","x":-29,"y":-67},{"res":"50004","x":-43,"y":-65},{"res":"50005","x":-39,"y":-61},{"res":"50006","x":-30,"y":-60},{"res":"50007","x":-29,"y":-59}]}},"res":{"50000":{"x":0,"y":0,"w":50,"h":69},"50001":{"x":50,"y":0,"w":50,"h":72},"50002":{"x":100,"y":0,"w":60,"h":67},"50003":{"x":160,"y":0,"w":38,"h":69},"50004":{"x":198,"y":0,"w":50,"h":68},"50005":{"x":248,"y":0,"w":48,"h":68},"50006":{"x":296,"y":0,"w":42,"h":69},"50007":{"x":338,"y":0,"w":56,"h":66}}}

{"mc":{"at01_1":{"frameRate":20,"labels":null,"frames":[{"res":"10000","x":-23,"y":-59},{"res":"10001","x":-17,"y":-64},{"res":"10002","x":-24,"y":-69},{"res":"10003","x":-1,"y":-49},{"res":"10004","x":1,"y":-51},{"res":"10005","x":-4,"y":-56},{"res":"10006","x":-7,"y":-59},{"res":"10007","x":-23,"y":-61}]}},"res":{"10000":{"x":0,"y":0,"w":55,"h":67},"10001":{"x":55,"y":0,"w":45,"h":72},"10002":{"x":100,"y":0,"w":54,"h":71},"10003":{"x":154,"y":0,"w":41,"h":73},"10004":{"x":195,"y":0,"w":49,"h":66},"10005":{"x":244,"y":0,"w":48,"h":63},"10006":{"x":292,"y":0,"w":44,"h":67},"10007":{"x":336,"y":0,"w":59,"h":64}}}

And when I run it into the animation, it was stiff. Any help was appreciated. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions