private static String toStringPretty(JsonArray jsonArray,int level){
  StringBuffer buf=new StringBuffer();
  buf.append("[");
  String indent="\n" + VAUtils.indent(level);
  boolean firstElt=true;
  for (int i=0; i < jsonArray.size(); i++) {
    JsonElement elt=jsonArray.get(i);
    if (firstElt)     firstElt=false;
 else     buf.append(",");
    buf.append(indent);
    buf.append(toStringPretty(elt,level + 1));
  }
  buf.append("]");
  return buf.toString();
}

private static String toStringPretty ( JsonArray jsonArray , int level ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( "[" ) ; String indent = "\n" + VAUtils . indent ( level ) ; boolean firstElt = true ; for ( int i = 0 ; i < jsonArray . size ( ) ; i ++ ) { JsonElement elt = jsonArray . get ( i ) ; if ( firstElt ) firstElt = false ; else buf . append ( "," ) ; buf . append ( indent ) ; buf . append ( toStringPretty ( elt , level + 1 ) ) ; } buf . append ( "]" ) ; return buf . toString ( ) ; }
returns a pretty printed string of the given json array , indented at the given level .
