question: 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 ( ) ; }
target:  Create a textual representation of a string literal that evaluates to the given value.