Hi, Yes, we could turn over the whole thing to JSON.parse(). The version of JSONInputParser you are using is part of an experiment to see if lazy JSON evaluation would work. I suppose we should really rename that class to LazyJSONInputParser or something like that. Any volunteers who want to do that are welcome to do so.
Why Lazy? At least on Flash, very large JSON strings can take long enough to parse that it freezes the UI. Doing Lazy parsing of the individual items can be a huge boost to performance. Thanks, -Alex On 6/19/14 11:24 AM, "pesgaio" <pesg...@logiberica.com> wrote: >Hi, > >On the JSONInputParser class, under the parseItems method we have the >following code: > >return s.split('},'); > >Is it possible to use native JS JSON parse? Something like: > >try{ >return JSON.parse(s); >} >catch (e) >{ >return "Error wile parsing JSON data"; >} > >I've change the JS after compiling the app and it works fine. > >Thanks > > > >-- >View this message in context: >http://apache-flex-development.2333347.n4.nabble.com/FlexJS-JSONInputParse >r-parseItems-tp38479.html >Sent from the Apache Flex Development mailing list archive at Nabble.com.