Packages

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
Linear Supertypes
Content Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. 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/

  2. 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/

  3. 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/

  4. 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/

  5. 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

  1. 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 the perThreadNumberParser 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/

  2. 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/

Inherited from AnyRef

Inherited from Any

Ungrouped