• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Issue using JSON.stringify on object

New Here ,
Mar 04, 2014 Mar 04, 2014

Copy link to clipboard

Copied

I have the following code, which attempts to stringify the member1 object

try {

    var member1:Object = {

      mediaId: meterEvent.mediaId,

      publisherId: meterEvent.publisherId

   };

 

   var val:String = JSON.stringify(member1);

} catch (err:Error) {

/// exception is called

}

but this throws an exception " ReferenceError: Error #1065". I have trying to get this going for several hours but cannot seem to find a solution. I am using Falsh Builder 4.7 and the Air SDK 3.4 to compile and build the swf. I suspect that maybe the issue is that the flash player where the code is running on maybe not be compatible. The version of the Flash Player is 12,0,0,70

Any idea of where to go from here. The larger context is that i am using URLRequest and URLLoader to formulate a HTTP POST with a JSON body

cheers

</jima>

Views

488

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines