/wro4j-extensions/src/main/java/ro/isdc/wro/extensions/script/RhinoUtils.java
} return toJson( object, true) ;
return toJson ( object, true ) ; }
} else { message.append(e.getMessage()); } return message.toString(); } public static String toJson(final Object object) { <extra_id_0> public static String toJson(final Object object, final boolean indent) { final StringBuilder s = new StringBuilder(); encode(s, object, indent, indent ? 0 : -1); return s.toString(); } private static void encode(final StringBuilder s, final Object object, final boolean indent, final int depth) {