JSONArray jsonArray = (JSONArray) JSONSerializer.toJSON( input );
 JsonConfig jsonConfig = new JsonConfig();
 jsonConfig.setArrayMode( JsonConfig.MODE_OBJECT_ARRAY );
 jsonConfig.setRootClass( Integer.TYPE );
 int[] output = (int[]) JSONSerializer.toJava( jsonArray,
jsonConfig );


On Jul 27, 7:14 pm, Bijan <[email protected]> wrote:
> Is there a simple way to convert a JsonArray to a standard Java Array?
>
> Obviously, you can iterate and do it explicitly, but I wanted to see
> if there was a direct way to do so.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to