Yeah, the sample code is bad. Your "Object" change was good. Now also make this change in YOSMethodBase.as sendRequest() method:
Change
headers.push( new URLRequestHeader("Accept","application/json") );
to
// TODO: Uncomment when Yahoo's crossdomain.xml supports this.
// headers.push( new URLRequestHeader("Accept","application/json") );