Hi,
> But reflection classes now support it...
Just to mention it:
Thanks to Piotr we're using Reflection [1] to extract the getters in order
create dynamic objects which can be stringified by using JSON.stringify()
then.
However, would be even better if Yishay's idea or something other on the
framework side would provide solutions. I could imagine that others will
also run into that issue.
Olaf
[1]
public static function getGetters(obj:Object):Array
{
return Reflect.ownKeys(obj).filter(
function(name:*):* {
var dummy:* = typeof Reflect.getOwnPropertyDescriptor(obj,
name)["get"] === "function";
return dummy;
});
}
--
Sent from: http://apache-royale-development.20373.n8.nabble.com/