Skip navigation
Currently Being Moderated

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

Mar 6, 2012 6:01 PM

Tags: #json #flex-4.6 #error_json #stringify

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\ListCollectionVie w.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,

 
Replies
  • Currently Being Moderated
    Jan 9, 2013 10:40 AM   in reply to stevemcl5

    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\dcradS wcs\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\dcradS wcs\4.5\locale\{locale}

    - fds_rb.swc

    - serializers_rb.swc

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points