question: public static String toJSONString ( Collection collection ) { final StringWriter writer = new StringWriter ( ) ; try { writeJSONString ( collection , writer ) ; return writer . toString ( ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
target:  Convert a list to JSON text. The result is a JSON array.  If this list is also a JSONAware, JSONAware specific behaviours will be omitted at this top level.