--
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/b755bbdc-7e21-4944-baae-0604567de0d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Since your JSON is an array, you will find the array with m.get("root"). That will return a List of Maps.Steve
On Wed, Oct 7, 2015 at 2:55 AM, <rava...@gmail.com> wrote:
Hi,i have a webservice that return a JSON.The structure of the JSON is:[{"name":"propriety1", "otherName":"otherProprieties1"},{"name":"propriety2","otherName":"otherProprieties2"},{"name":"propriety3", "otherName":"otherProprieties3"},...,{"name":"proprietyN", otherName":"otherProprietiesN"}]I do this for parse:byte b[] = Util.readInputStream(input);input = new ByteArrayInputStream(b);JSONParser jp = new JSONParser();Map m = jp.parseJSON(new InputStreamReader(input));but i don't know how to get an object from the map (i don't know the key) and get the item from the objectCan someone help me?
--
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/b755bbdc-7e21-4944-baae-0604567de0d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.