object JSONFormat
This object defines functions that are used when converting JSONType values into String representations. Mostly this is concerned with proper quoting of strings.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JSONFormat
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
ValueFormatter = (Any) ⇒ String
This type defines a function that can be used to format values into JSON format.
Value Members
-
val
defaultFormatter: ValueFormatter
The default formatter used by the library.
The default formatter used by the library. You can provide your own with the toString calls on JSONObject and JSONArray instances.
-
def
quoteString(s: String): String
This function can be used to properly quote Strings for JSON output.