//ERDDAP/com.cohort.util/ScriptString2/quoteParameterIfNeeded
quoteParameterIfNeeded
[JVM]
open fun quoteParameterIfNeeded(s: String): String
For command line parameters, this returns toJson(s) if the string is empty or contains special characters or single or double quotes or backslash; otherwise it return s.