Package au.com.dius.pact.consumer.dsl
Class QuoteUtil
java.lang.Object
au.com.dius.pact.consumer.dsl.QuoteUtil
Util class for dealing with Json format
-
Method Summary
-
Method Details
-
convert
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
-