All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.SerializerEscapeJSON.vm Maven / Gradle / Ivy


private fun escapeJson(ostream : java.io.PrintStream, chain : String) {
    var i = 0
    while(i < chain.size){
        val c = chain.get(i)
        if(c == '"') {
            ostream.print(""")
        } else if(c == '\'') {
            ostream.print("'")
        } else {
            ostream.print(c)
        }
        i = i + 1
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy