I have json file that I have exported using TexturePacker, and it produces this format.
{"frames": {
"But_01_Highlight.png":
{
"frame": {"x":0,"y":0,"w":280,"h":41},
"rotated": false,
"trimmed": true,
"spriteSourceSize": {"x":7,"y":8,"w":280,"h":41},
"sourceSize": {"w":294,"h":57}
},
I was following a tutorial where you could just turn it into an array but that's not available on windows phone 7. It feels like I have the reverse engineer every format rather than just read it as is parsed.
How would I create an object with a datacontract to load this format?
My question is also similar to the following question https://stackoverflow.com/questions/3769322/datacontractjsonserializer-with-arbitrary-key-names which has no answer
@Andreas Löw if you could export to a format like so it would be great.
{"frames":[
{
"filename": "But_01_Highlight.png",
"frame": {"x":0,"y":0,"w":280,"h":41},
"rotated": false,
"trimmed": true,
"spriteSourceSize": {"x":7,"y":8,"w":280,"h":41},
"sourceSize": {"w":294,"h":57}
},
...
]