If you are having trouble compiling Flare with the Flex SDK 4.6 and getting some error with com.adobe.serialization.json.JSON, it's because the API has changed.
How to fix:
-
Remove any imports of com.adobe.serialization.json.JSON, it's not needed anymore.
-
Replace JSON.encode with JSON.stringify
-
Replace JSON.decode with JSON.parse
-
In build.xml, in the target flare, uncomment this line
<source-path path-element="${flare.lib}/"/>