public static String toValidJson(final String jsonStr){
  return jsonStr.replace("'","\"");
}

public static String toValidJson ( final String jsonStr ) { return jsonStr . replace ( "'" , "\"" ) ; }
allows usage of single quote character in json string used in unit tests .
