I’ve got some Json from Aseprite I’ve pasted below, it doesnt have an iterator so I cant simply read it in as a Json string and loop over my frames. I’ve read you need to use reflection to iterate it, however the problem I’ve had is reflection doesnt work on Neko.
Are there any simple workarounds to this, or should I attempt to process the text as a string manually?
{ "frames": {
"BluehairGuy-Run 0.ase": {
"frame": { "x": 0, "y": 0, "w": 64, "h": 128 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 64, "h": 128 },
"sourceSize": { "w": 64, "h": 128 },
"duration": 100
},
"BluehairGuy-Run 1.ase": {
"frame": { "x": 64, "y": 0, "w": 64, "h": 128 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 64, "h": 128 },
"sourceSize": { "w": 64, "h": 128 },
"duration": 100
},
"BluehairGuy-Run 2.ase": {
"frame": { "x": 128, "y": 0, "w": 64, "h": 128 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 64, "h": 128 },
"sourceSize": { "w": 64, "h": 128 },
"duration": 100
},
"BluehairGuy-Run 3.ase": {
"frame": { "x": 192, "y": 0, "w": 64, "h": 128 },
"rotated": false,
"trimmed": false,
"spriteSourceSize": { "x": 0, "y": 0, "w": 64, "h": 128 },
"sourceSize": { "w": 64, "h": 128 },
"duration": 100
}
},
"meta": {
"app": "http://www.aseprite.org/",
"version": "1.2.6",
"image": "character/bluehairGuy/BluehairGuy-Run.png",
"format": "RGBA8888",
"size": { "w": 256, "h": 128 },
"scale": "1",
"frameTags": [
],
"layers": [
{ "name": "Layer 1", "opacity": 255, "blendMode": "normal" }
],
"slices": [
]
}
}