SubscriptionInfo[] infos = new SubscriptionInfo[array.length()];
for (int i = 0; i < array.length(); i++)
{
JSONObject sub = array.getJSONObject(i);
SubscriptionInfo info = new SubscriptionInfo(sub.getString("queueName"),
sub.optString("clientID", null),
sub.optString("name", null),
sub.getBoolean("durable"),
sub.optString("selector", null),
sub.getInt("messageCount"),
sub.getInt("deliveringCount"));