Hey Paul,
When i parsed the String the exception is throwed:
Error: Unexpected m encountered
at com.adobe.serialization.json::JSONTokenizer/parseError()
at com.adobe.serialization.json::JSONTokenizer/getNextToken()
The parser need that metadata will be "metadata".
Thanks,
Marcio N.
--- In [email protected], Paul deCoursey <[EMAIL PROTECTED]> wrote:
>
> JSON, what you need is a JSON parser. I believe there is one on
google
> code...
>
> http://code.google.com/p/as3corelib/
>
> Paul
>
>
> Marcio Napoli wrote:
> > Hey All,
> >
> > If i have one String that represents Array of Arrays (same
sintax).
> > Its possible convert in Array object?
> >
> > private var string: String = '[[{metadata:{fields:
> > [{width:50,attrname:"NME_NIVEL_FORM",fieldtype:"string"},
> > {width:4,attrname:"ANO_FORM",fieldtype:"string"}]},rowdata:
> > [["Doutorado","2006"],]],version:2.0}]]';
> >
> > its same:
> > private var array: Array = [[{metadata:{fields:
> > [{width:50,attrname:"NME_NIVEL_FORM",fieldtype:"string"},
> > {width:4,attrname:"ANO_FORM",fieldtype:"string"}]},rowdata:
> > [["Doutorado","2006"],]],version:2.0}]];
> >
> >
> > For example:
> > array = ArrayUtil.toArray(string);
> >
> >
> > Thanks,
> > Marcio N.
> >
> >
> >
> >
> >
>