//ERDDAP/com.cohort.util/ScriptString2/toJson
toJson
[JVM]
open fun toJson(f: Float): String
This makes a JSON version of a float.
Return
"null" if not finite. Return an integer if it ends with ".0". Else returns the number as a string.
Parameters
JVM
f |
[JVM]
open fun toJson(d: Double): String
This makes a JSON version of a number.
Return
"null" if not finite. Return an integer if it ends with ".0". Else returns the number as a string.