package json
- Alphabetic
- Public
- All
Type Members
-
case class
JSONArray
(list: List[Any]) extends JSONType with Product with Serializable
Represents a JSON Array (list).
-
case class
JSONObject
(obj: Map[String, Any]) extends JSONType with Product with Serializable
Represents a JSON Object (map).
-
sealed abstract
class
JSONType
extends AnyRef
A marker class for the JSON result types.
- class Lexer extends StdLexical with ImplicitConversions
-
class
Parser
extends StdTokenParsers with ImplicitConversions
The main JSON Parser.
Value Members
-
object
JSON
extends Parser
This object provides a simple interface to the JSON parser class.
This object provides a simple interface to the JSON parser class. The default conversion for numerics is into a double. If you wish to override this behavior at the global level, you can set the
globalNumberParser
property to your own(String => Any)
function. If you only want to override at the per-thread level then you can set theperThreadNumberParser
property to your function. For example:val myConversionFunc = {input : String => BigDecimal(input)} // Global override JSON.globalNumberParser = myConversionFunc // Per-thread override JSON.perThreadNumberParser = myConversionFunc
-
object
JSONFormat
This object defines functions that are used when converting JSONType values into String representations.
This object defines functions that are used when converting JSONType values into String representations. Mostly this is concerned with proper quoting of strings.