You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2014/02/23 23:34:19 UTC

[jira] [Commented] (FLEX-34108) JSON.stringify and arraycollection

    [ https://issues.apache.org/jira/browse/FLEX-34108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909925#comment-13909925 ] 

Justin Mclean commented on FLEX-34108:
--------------------------------------

Confirmed:

{code}
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
			   xmlns:s="library://ns.adobe.com/flex/spark" 
			   xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init(event)">
	<fx:Script>
		<![CDATA[
			import mx.collections.ArrayCollection;
			import mx.events.FlexEvent;
			
			protected function init(event:FlexEvent):void
			{
				var ac:ArrayCollection = new ArrayCollection([1,2,3,4]);
				var obj:Object = {array:ac};
				JSON.stringify(obj);
			}
			
		]]>
	</fx:Script>
	
</s:Application>
{code}

> JSON.stringify and arraycollection
> ----------------------------------
>
>                 Key: FLEX-34108
>                 URL: https://issues.apache.org/jira/browse/FLEX-34108
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Apache Flex 4.11.0
>         Environment: windows7, flashbuilder 4.7
>            Reporter: Fabiano Citrone
>              Labels: easytest
>
> 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()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:940]
> 	at JSON$/stringifySpecializedToString()
> 	at JSON$/stringify()



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)