title: as3corelib JSON parsing problem
body: <p>I have the following two routines in Flash Builder:</p>
  
  <pre><code>public function getData():void {
  
      httpService = new HTTPService();
      httpService.url = "https://mongolab.com/api/1/databases/xxx/collections/system.users/?apiKey=xxx";
      httpService.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
      httpService.addEventListener(ResultEvent.RESULT, resultHandler);
      httpService.send();
  }
  
  public function resultHandler(event:ResultEvent):void {
  
      var rawData:String = String(event.result);
      var arr:Array = JSON.decode(rawData) as Array;
      Debug.log(rawData);
      Debug.log(arr);
  
      httpService.removeEventListener(ResultEvent.RESULT, resultHandler);
  }
  </code></pre>
  
  <p>rawData is displayed as JSON data but arr is displayed as [object Object] rather than an array.</p>
  
  <p>What am I doing wrong?</p>