public static String toStringPretty(JsonObject jsonObj,int level){
  StringBuffer buf=new StringBuffer();
  buf.append("{");
  buf.append(fieldsToStringPretty(jsonObj,level + 1));
  buf.append("}");
  return buf.toString();
}

public static String toStringPretty ( JsonObject jsonObj , int level ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( "{" ) ; buf . append ( fieldsToStringPretty ( jsonObj , level + 1 ) ) ; buf . append ( "}" ) ; return buf . toString ( ) ; }
returns a pretty printed string of the given json object , indented at the given level .
