--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/229ce175-85ac-4e24-ae2f-43ec3b5edb75%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hello Steve,thank you very much for the helpful quick answer.I have just tested this j2me-json. It works on simulator and also on iOS (iPod Touch device), but I get error "not installed" by installation on Samsung Galaxy S1 (Android 2.3.5).How can I get the exact error message on Android? Or What else do I need to handle the source code of j2me-json in codename one?Regards,Pai
On Tuesday, July 16, 2013 9:35:39 PM UTC+2, Pai Peng wrote:
I have used this one with very few modifications in CN1 projects.For performance reasons, I changed StringBuffer to StringBuilder, Hashtable to HashMap, and Vector to ArrayList throughout the library. (This increases performance by a factor of 3.5 on iOS)I don't have my changes handy right now, but I'll post them when I get a chance.Steve
On Tue, Jul 16, 2013 at 12:35 PM, Pai Peng <sipa...@gmail.com> wrote:
Hello all,I would like to use the JSONObject and JSONArray in Codename One project for creating JSON string. I have tested json-simple Java library(https://code.google.com/p/json-simple/), it works great on Simulator, but not possible on Android or iOS device.I have also tried to compile the json-simple source code in my project, but got error StringReader class not found.Now I want to ask, How can I do this job under Codename One?
Thank you all.Regards,Pai
--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/229ce175-85ac-4e24-ae2f-43ec3b5edb75%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
JSONObject object = new JSONObject(json);
JSONArray arrayOfObjects = index.getJSONArray("myObjects");
Hi all,Steve, I think what you have mentionned here is very interesting... We don't have so much informations (dev guide, forum...) about performances on iOS related to Java Objects. It's very abstract since we don't know exactly how java object are converted in objective C.
I know in Java difference between StringBuffer/Builder, Hashtable/HashMap etc but it's pretty difficult to apply this to ios platform. You said that replacing some java object "increase performance by a factor of 3.5" on iOS : how did you the benchmark ? I think it could be interesting to have more documentation about performance linked to the platform.