argonaut

Jsons

trait Jsons extends AnyRef

Constructors and other utilities for JSON values.

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

Type Members

  1. type JsonArray = List[Json]

  2. type JsonAssoc = (JsonField, Json)

  3. type JsonAssocList = List[(JsonField, Json)]

  4. type JsonBoolean = Boolean

  5. type JsonField = String

  6. type JsonString = String

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. implicit val JsonInstances: Equal[Json] with Show[Json]

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

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

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

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

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

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

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

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

    Construct a JSON value that is an array.

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

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

  17. def jArrayPL: @?>[Json, JsonArray]

    A partial lens for JSON array values.

  18. def jArrayPrism: SimplePrism[Json, JsonArray]

    A Prism for JSON array values.

  19. def jBigDecimalPrism: SimplePrism[Json, BigDecimal]

    A Prism for JSON number values.

  20. def jBigIntPrism: SimplePrism[Json, BigInt]

    A Prism for JSON BigInt values.

  21. val jBool: (Boolean) ⇒ Json

    Construct a JSON value that is a boolean.

  22. def jBoolPL: @?>[Json, Boolean]

    A partial lens for JSON boolean values.

  23. def jBoolPrism: SimplePrism[Json, Boolean]

    A Prism for JSON boolean values.

  24. def jBytePrism: SimplePrism[Json, Byte]

    A Prism for JSON Byte values.

  25. def jDoublePrism: SimplePrism[Json, Double]

    A Prism for JSON number values.

    A Prism for JSON number values. Note: It is an invalid Prism for NaN, +Infinity and -Infinity as they are not valid json.

  26. val jEmptyArray: Json

    A JSON value that is an empty array.

  27. val jEmptyObject: Json

    A JSON value that is an empty object.

  28. val jEmptyString: Json

    A JSON value that is an empty string.

  29. val jFalse: Json

    Construct a JSON boolean value of false.

  30. def jIntPrism: SimplePrism[Json, Int]

    A Prism for JSON Int values.

  31. def jLongPrism: SimplePrism[Json, Long]

    A Prism for JSON Long values.

  32. val jNull: Json

    Construct a JSON value that is null.

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

    Construct a JSON value that is a number.

  34. def jNumber(n: BigDecimal): Option[Json]

    Construct a JSON value that is a number.

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

  36. def jNumber(n: Long): 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.

  37. def jNumber(n: Int): 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.

  38. def jNumber(n: JsonNumber): Json

    Construct a JSON value that is a number.

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

  40. def jNumberOrNull(n: BigDecimal): Json

    Construct a JSON value that is a number.

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

  42. def jNumberOrNull(n: Long): 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.

  43. def jNumberOrNull(n: Int): 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.

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

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

  46. def jNumberOrString(n: Long): 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.

  47. def jNumberOrString(n: Int): 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.

  48. def jNumberPL: @?>[Json, JsonNumber]

    A partial lens for JSON number values.

  49. val jObject: (JsonObject) ⇒ Json

    Construct a JSON value that is an object.

  50. def jObjectAssocList(x: JsonAssocList): Json

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

  51. implicit val jObjectAt: At[JsonObject, JsonField, Json]

  52. implicit val jObjectEach: Each[JsonObject, Json]

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

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

  54. implicit val jObjectFilterIndex: FilterIndex[JsonObject, JsonField, Json]

  55. implicit val jObjectIndex: Index[JsonObject, JsonField, Json]

  56. def jObjectPL: @?>[Json, JsonObject]

    A partial lens for JSON object values.

  57. def jObjectPrism: SimplePrism[Json, JsonObject]

    A Prism for JSON object values.

  58. def jShortPrism: SimplePrism[Json, Short]

    A Prism for JSON Short values.

  59. def jSingleArray(j: Json): Json

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

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

  61. val jString: (JsonString) ⇒ Json

    Construct a JSON value that is a string.

  62. def jStringPL: @?>[Json, JsonString]

    A partial lens for JSON string values.

  63. def jStringPrism: SimplePrism[Json, JsonString]

    A Prism for JSON string values.

  64. val jTrue: Json

    Construct a JSON boolean value of true.

  65. val jZero: Json

    A JSON value that is a zero number.

  66. def jsonArrayPL(n: Int): @?>[JsonArray, Json]

    A partial lens for element of JSON array.

  67. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  68. final def notify(): Unit

    Definition Classes
    AnyRef
  69. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  70. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  71. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped