public static JSONArray vmsToJSON ( Collection < VM > s ) { JSONArray a = new JSONArray ( ) ; for ( Element e : s ) { a . add ( e . id ( ) ) ; } return a ; }
Convert a collection of VMs to an array of VM identifiers .