/** * Create a new JsonSlurper with the given sort strategy. Uses the default ToStringComparator to compare lists of * maps. * * @param sortStrategy Strategy to use when sorting the parsed JSON object */ public JsonSlurper(JsonSortStrategy sortStrategy) { this(sortStrategy, new ToStringComparator<>()); }
/** * Create a new JsonSlurper with the given sort strategy. Uses the default ToStringComparator to compare lists of * maps. * * @param sortStrategy Strategy to use when sorting the parsed JSON object */ public JsonSlurper(JsonSortStrategy sortStrategy) { this(sortStrategy, new ToStringComparator<>()); }