Monday, February 10, 2014

Adobe Flex: JSON.stringify(object) - error

Issue: When JSON.stringify(object) used for an object which contains an attribute of type "ArrayCollection", it throws an error.
Error: Unknown Property: 'dispatchResetEvent'.
 at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()
 at JSON$/stringifySpecializedToString()
 at JSON$/stringify()
Fix: Use Array instead of ArrayCollection.