Doesn't look like the forum is getting any love from Yahoo! these days, but maybe someone can help. I'm using the API to access data for this year's Baseball league. I need to use the JSON format; retooling other parts of my app stack to XML would be prohibitive at the moment, and I'd prefer to avoid transcoding if I can. However, the JSON i'm getting back is laid out oddly. For example, consider the following API request (League ID and Guids elided):
instead each property is a separate object, and these "property objects" are passed as an array. Note that the properties of the outer fantasy_content object don't have this layout; nor do the team_logo or manager (inner) objects present in the reply. Note also that some of the members of the inner array are empty arrays. Do these represent sub-collections that weren't retrieved?
Is this a known issue, and is it documented anywhere? I'd prefer to be able to use JSON.parse() on the data returned by the api calls, but the layout of many of the objects returned have this issue, making it more difficult to use. At the moment it looks like I'll need to run some kind of transformation on the results - exactly what I wanted to avoid by using JSON in the first place.