protected String quoteStringLiteral(String value){
  StringWriter sw=new StringWriter();
  try (JsonWriter writer=new JsonWriter(sw)){
    writer.setLenient(true);
    writer.value(value);
    writer.flush();
  }
 catch (  IOException ex) {
    throw new RuntimeException("Unexpected I/O failure: " + ex.getLocalizedMessage(),ex);
  }
  return sw.toString();
}

protected String quoteStringLiteral ( String value ) { StringWriter sw = new StringWriter ( ) ; try ( JsonWriter writer = new JsonWriter ( sw ) ) { writer . setLenient ( true ) ; writer . value ( value ) ; writer . flush ( ) ; } catch ( IOException ex ) { throw new RuntimeException ( "Unexpected I/O failure: " + ex . getLocalizedMessage ( ) , ex ) ; } return sw . toString ( ) ; }
create a textual representation of a string literal that evaluates to the given value .
