org.dianahep.histogrammar

json

package json

Provides support for parsing and stringifying JSON.

This module is a new implementation; it does not depend on packages such as Jackson. This choice was to provide the following features:

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. json
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. implicit class HasKeySet extends AnyRef

  2. class InvalidJsonException extends Exception

    Exception type for strings that cannot be parsed because they are not proper JSON.

  3. sealed trait Json extends AnyRef

    Interface for all parsed, in-memory JSON objects.

  4. case class JsonArray(elements: Json*) extends JsonContainer with Product with Serializable

    Concrete class for JSON arrays.

  5. trait JsonBoolean extends JsonPrimitive

    Interface for JSON booleans (true and false).

  6. trait JsonContainer extends Json

    Interface for all JSON containers: arrays and objects (mappings).

  7. case class JsonFloat(value: Double) extends JsonNumber with Product with Serializable

    Concrete class for JSON floating point numbers.

  8. class JsonFormatException extends Exception

    Exception type for unexpected JSON structure, thrown by fromJson methods.

  9. case class JsonInt(value: Long) extends JsonNumber with Product with Serializable

    Concrete class for JSON integers.

  10. trait JsonNumber extends JsonPrimitive

    Interface for JSON numbers, both integral and floating point.

  11. case class JsonObject(pairs: (JsonString, Json)*) extends JsonContainer with Product with Serializable

    Concrete class for JSON objects (mappings).

  12. trait JsonPrimitive extends Json

    Interface for all JSON primitives: null, true, false, numbers, and strings.

  13. case class JsonString(value: String) extends JsonPrimitive with Product with Serializable

    Concrete class for JSON strings.

  14. case class ParseState(str: String, pos: Int = 0) extends Product with Serializable

    Status of JSON-parsing an in-memory string.

Value Members

  1. object Json

    Entry point for parsing JSON.

  2. object JsonArray extends Serializable

  3. object JsonBoolean

  4. object JsonContainer

  5. object JsonFalse extends JsonBoolean with Product with Serializable

    Concrete singleton for JSON false.

  6. object JsonFloat extends Serializable

  7. object JsonInt extends Serializable

  8. object JsonNull extends JsonPrimitive with Product with Serializable

    Concrete singleton for JSON null.

  9. object JsonNumber

  10. object JsonObject extends Serializable

  11. object JsonPrimitive

  12. object JsonString extends Serializable

  13. object JsonTrue extends JsonBoolean with Product with Serializable

    Concrete singleton for JSON true.

  14. implicit def booleanToJson(x: Boolean): JsonBoolean with Product with Serializable

  15. implicit def byteToJson(x: Byte): JsonInt

  16. implicit def charToJson(x: Char): JsonString

  17. implicit def doubleToJson(x: Double): JsonFloat

  18. implicit def floatToJson(x: Float): JsonFloat

  19. implicit def intToJson(x: Int): JsonInt

  20. implicit def longToJson(x: Long): JsonInt

  21. implicit def shortToJson(x: Short): JsonInt

  22. implicit def stringToJson(x: String): JsonString

Inherited from AnyRef

Inherited from Any

Ungrouped