t

argonaut

Jsons

trait Jsons extends AnyRef

Constructors and other utilities for JSON values.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Jsons
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type JsonArray = List[Json]
  2. type JsonAssoc = (JsonField, Json)
  3. type JsonAssocList = List[JsonAssoc]
  4. type JsonBoolean = Boolean
  5. type JsonField = String
  6. type JsonString = String

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. val jArray: (JsonArray) ⇒ Json

    Construct a JSON value that is an array.

  13. def jArrayElements(elements: Json*): Json

    Construct a JSON value that is an array from a list of elements (var args).

  14. val jBool: (Boolean) ⇒ Json

    Construct a JSON value that is a boolean.

  15. val jEmptyArray: Json

    A JSON value that is an empty array.

  16. val jEmptyObject: Json

    A JSON value that is an empty object.

  17. val jEmptyString: Json

    A JSON value that is an empty string.

  18. val jFalse: Json

    Construct a JSON boolean value of false.

  19. val jNull: Json

    Construct a JSON value that is null.

  20. def jNumber(n: String): Option[Json]

    Construct a JSON value that is a number.

  21. def jNumber(n: BigDecimal): Json

    Construct a JSON value that is a number.

  22. def jNumber(n: Double): Option[Json]

    Construct a JSON value that is a number.

    Construct a JSON value that is a number.

    Note: NaN, +Infinity and -Infinity are not valid json.

  23. def jNumber(n: Long): Json

    Construct a JSON value that is a number.

  24. def jNumber(n: Int): Json

    Construct a JSON value that is a number.

  25. def jNumber(n: JsonNumber): Json

    Construct a JSON value that is a number.

  26. def jNumberOrNull(n: String): Option[Json]

    Construct a JSON value that is a number.

    Construct a JSON value that is a number. Transforming the Strings "NaN", "Infinity", "+Infinity" and "-Infinity" to jNull. This matches the behaviour of most browsers, but is a lossy operation as you can no longer distinguish between NaN and Infinity.

  27. def jNumberOrNull(n: Double): Json

    Construct a JSON value that is a number.

    Construct a JSON value that is a number. Transforming NaN, +Infinity and -Infinity to jNull. This matches the behaviour of most browsers, but is a lossy operation as you can no longer distinguish between NaN and Infinity.

  28. def jNumberOrString(n: String): Option[Json]

    Construct a JSON value that is a number.

    Construct a JSON value that is a number. Transforming the Strings "NaN", "Infinity", "+Infinity" and "-Infinity" to their string implementations.

    This is an argonaut specific transformation that allows all doubles to be encoded without losing information, but aware interoperability is unlikely without custom handling of these values. See also jNumber and jNumberOrNull.

  29. def jNumberOrString(n: Double): Json

    Construct a JSON value that is a number.

    Construct a JSON value that is a number. Transforming NaN, +Infinity and -Infinity to their string implementations.

    This is an argonaut specific transformation that allows all doubles to be encoded without losing information, but aware interoperability is unlikely without custom handling of these values. See also jNumber and jNumberOrNull.

  30. val jObject: (JsonObject) ⇒ Json

    Construct a JSON value that is an object.

  31. def jObjectAssocList(x: JsonAssocList): Json

    Construct a JSON value that is an object from an association list.

  32. def jObjectFields(x: (JsonField, Json)*): Json

    Construct a JSON value that is an object from an association list (var args).

  33. def jSingleArray(j: Json): Json

    Returns a function that takes a single value and produces a JSON array that contains only that value.

  34. def jSingleObject(k: JsonField, v: Json): Json

    Returns a function that takes an association value and produces a JSON object that contains only that value.

  35. val jString: (JsonString) ⇒ Json

    Construct a JSON value that is a string.

  36. val jTrue: Json

    Construct a JSON boolean value of true.

  37. val jZero: Json

    A JSON value that is a zero number.

  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped