Class QuoteUtil

java.lang.Object
au.com.dius.pact.consumer.dsl.QuoteUtil

public final class QuoteUtil extends Object
Util class for dealing with Json format
  • Method Details

    • convert

      public static String convert(String text)
      Reads the input text with possible single quotes as delimiters and returns a String correctly formatted.

      For convenience, single quotes as well as double quotes are allowed to delimit strings. If single quotes are used, any quotes, single or double, in the string must be escaped (prepend with a '\').

      Parameters:
      text - the input data
      Returns:
      String without single quotes