Object/Class

argonaut

Json

Related Docs: class Json | package argonaut

Permalink

object Json extends Jsons with Serializable

Source
Json.scala
Linear Supertypes
Serializable, Serializable, Jsons, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Json
  2. Serializable
  3. Serializable
  4. Jsons
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type JsonArray = List[Json]

    Permalink
    Definition Classes
    Jsons
  2. type JsonAssoc = (JsonField, Json)

    Permalink
    Definition Classes
    Jsons
  3. type JsonAssocList = List[JsonAssoc]

    Permalink
    Definition Classes
    Jsons
  4. type JsonBoolean = Boolean

    Permalink
    Definition Classes
    Jsons
  5. type JsonField = String

    Permalink
    Definition Classes
    Jsons
  6. type JsonString = String

    Permalink
    Definition Classes
    Jsons

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(fields: (JsonField, Json)*): Json

    Permalink
  5. def array(elements: Json*): Json

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. val jArray: (JsonArray) ⇒ Json

    Permalink

    Construct a JSON value that is an array.

    Construct a JSON value that is an array.

    Definition Classes
    Jsons
  15. def jArrayElements(elements: Json*): Json

    Permalink

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

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

    Definition Classes
    Jsons
  16. val jBool: (Boolean) ⇒ Json

    Permalink

    Construct a JSON value that is a boolean.

    Construct a JSON value that is a boolean.

    Definition Classes
    Jsons
  17. val jEmptyArray: Json

    Permalink

    A JSON value that is an empty array.

    A JSON value that is an empty array.

    Definition Classes
    Jsons
  18. val jEmptyObject: Json

    Permalink

    A JSON value that is an empty object.

    A JSON value that is an empty object.

    Definition Classes
    Jsons
  19. val jEmptyString: Json

    Permalink

    A JSON value that is an empty string.

    A JSON value that is an empty string.

    Definition Classes
    Jsons
  20. val jFalse: Json

    Permalink

    Construct a JSON boolean value of false.

    Construct a JSON boolean value of false.

    Definition Classes
    Jsons
  21. val jNull: Json

    Permalink

    Construct a JSON value that is null.

    Construct a JSON value that is null.

    Definition Classes
    Jsons
  22. def jNumber(n: String): Option[Json]

    Permalink

    Construct a JSON value that is a number.

    Construct a JSON value that is a number.

    Definition Classes
    Jsons
  23. def jNumber(n: BigDecimal): Json

    Permalink

    Construct a JSON value that is a number.

    Construct a JSON value that is a number.

    Definition Classes
    Jsons
  24. def jNumber(n: Double): Option[Json]

    Permalink

    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.

    Definition Classes
    Jsons
  25. def jNumber(n: Long): Json

    Permalink

    Construct a JSON value that is a number.

    Construct a JSON value that is a number.

    Definition Classes
    Jsons
  26. def jNumber(n: Int): Json

    Permalink

    Construct a JSON value that is a number.

    Construct a JSON value that is a number.

    Definition Classes
    Jsons
  27. def jNumber(n: JsonNumber): Json

    Permalink

    Construct a JSON value that is a number.

    Construct a JSON value that is a number.

    Definition Classes
    Jsons
  28. def jNumberOrNull(n: String): Option[Json]

    Permalink

    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.

    Definition Classes
    Jsons
  29. def jNumberOrNull(n: Double): Json

    Permalink

    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.

    Definition Classes
    Jsons
  30. def jNumberOrString(n: String): Option[Json]

    Permalink

    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.

    Definition Classes
    Jsons
  31. def jNumberOrString(n: Double): Json

    Permalink

    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.

    Definition Classes
    Jsons
  32. val jObject: (JsonObject) ⇒ Json

    Permalink

    Construct a JSON value that is an object.

    Construct a JSON value that is an object.

    Definition Classes
    Jsons
  33. def jObjectAssocList(x: JsonAssocList): Json

    Permalink

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

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

    Definition Classes
    Jsons
  34. def jObjectFields(x: (JsonField, Json)*): Json

    Permalink

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

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

    Definition Classes
    Jsons
  35. def jSingleArray(j: Json): Json

    Permalink

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

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

    Definition Classes
    Jsons
  36. def jSingleObject(k: JsonField, v: Json): Json

    Permalink

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

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

    Definition Classes
    Jsons
  37. val jString: (JsonString) ⇒ Json

    Permalink

    Construct a JSON value that is a string.

    Construct a JSON value that is a string.

    Definition Classes
    Jsons
  38. val jTrue: Json

    Permalink

    Construct a JSON boolean value of true.

    Construct a JSON boolean value of true.

    Definition Classes
    Jsons
  39. val jZero: Json

    Permalink

    A JSON value that is a zero number.

    A JSON value that is a zero number.

    Definition Classes
    Jsons
  40. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  43. def obj(fields: (JsonField, Json)*): Json

    Permalink
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  46. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Jsons

Inherited from AnyRef

Inherited from Any

Ungrouped