package json
This package was never intended for production use; it's really more of a code sample demonstrating how to use parser combinators.
Use The Scala Library Index to find alternative JSON parsing libraries.
- Source
- package.scala
- Alphabetic
- By Inheritance
- json
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
JSONArray
(list: List[Any]) extends JSONType with Product with Serializable
Represents a JSON Array (list).
Represents a JSON Array (list).
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/
-
case class
JSONObject
(obj: Map[String, Any]) extends JSONType with Product with Serializable
Represents a JSON Object (map).
Represents a JSON Object (map).
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/
-
sealed abstract
class
JSONType
extends AnyRef
A marker class for the JSON result types.
A marker class for the JSON result types.
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/
-
class
Lexer
extends StdLexical with ImplicitConversions
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/
-
class
Parser
extends StdTokenParsers with ImplicitConversions
The main JSON Parser.
The main JSON Parser.
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/
Deprecated 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
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/
-
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.
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.6) Use The Scala Library Index to find alternatives: https://index.scala-lang.org/