1 Reply Latest reply: Jan 9, 2013 10:40 AM by dsummers13 RSS

    How do I use the old JSON.encode in Flex 4.6?

    stevemcl5

      How do I use the old JSON.encode() function from Flex 4.5 - from libs/corelib.swc  (import com.adobe.serialization.json.*) ?

      I have it working fine in 4.5, but in 4.6 there's a new JSON decode function and JSON.stringify is barfing up errors:

       

      Unknown Property: 'dispatchResetEvent'

      at  ..\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:870

       

      Since the old JSON.decode() is a static function, how can I declare it and use it in 4.6?  do I need a namespace?  I'm getting compile errors in 4.6.

       

      thanks,

        • 1. Re: How do I use the old JSON.encode in Flex 4.6?
          dsummers13

          I was able to compare to another project and found that some additional swcs were loaded in - so i added both as SWC folders in the project settings:

           

           

          E:\Adobe Creative Cloud\Adobe Flash Builder 4.7\eclipse\plugins\com.adobe.flexbuilder.project_4.7.0.349722\dcradSwcs\4.5\libs

          - fds.swc

          - serializers.swc

           

          E:\Adobe Creative Cloud\Adobe Flash Builder 4.7\eclipse\plugins\com.adobe.flexbuilder.project_4.7.0.349722\dcradSwcs\4.5\locale\{loca le}

          - fds_rb.swc

          - serializers_rb.swc