简体   繁体   中英

getting Json in to a list in flex flash builder mobile

I using Flash builder 4.5 and calling my own webservice which return a json with four fields, but many records.

I use the Data/Service to create the service and when I use the "Test Operation" I get the first record with the four fields, if I change to raw view I see five records.

My problem when I bind it to a list I only get the first record, regardless if I return the result as an array or arraycollection. I have a Data Type called NoName1 which have four fields.

My question is how to get the result from a json into a list,the way I do it now will only show the first record in the list.

Thanks, Kim

  <s:CallResponder id="Operation1Result" result="Operation1Result.lastResult as NoName1"/>

要解码JSON,您可以使用as3corelib

Flash builder 4.5.1 takes care of the deserializing of the json. I found the problem, the json from the website was not formatted corretly

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM