The @expose/@export needs to be added before the final compiler
optimization pass.  Often the JSON is not explicitly included in the
source code since it often comes from a server request, so there is no way
to examine the source and know which properties to protect from renaming.
But you could certainly write a utility that examines a JSON structure and
generates a class definition for it.

You don't always want to protect the names of variables in an Object.

-Alex

On 2/23/16, 9:03 PM, "lizhi" <s...@qq.com> wrote:

>thanks.but this hard use.
>is it the flexjs know the Object type?
>if is the Object type.
>add /** @expose */ to all var name?
>
>
>
>--
>View this message in context:
>http://apache-flex-development.2333347.n4.nabble.com/flexjs-eat-json-tiles
>ets-tp51581p51690.html
>Sent from the Apache Flex Development mailing list archive at Nabble.com.

Reply via email to