JsonObject

io.circe.JsonObject$
See theJsonObject companion class
object JsonObject

Constructors, type class instances, and other utilities for JsonObject.

Attributes

Companion:
class
Source:
JsonObject.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

final def apply(fields: (String, Json)*): JsonObject

Construct a JsonObject from the given key-value pairs.

Construct a JsonObject from the given key-value pairs.

Attributes

Source:
JsonObject.scala
final def fromFoldable[F[_]](fields: F[(String, Json)])(implicit F: Foldable[F]): JsonObject

Construct a JsonObject from a foldable collection of key-value pairs.

Construct a JsonObject from a foldable collection of key-value pairs.

Attributes

Source:
JsonObject.scala
final def fromIterable(fields: Iterable[(String, Json)]): JsonObject

Construct a JsonObject from an scala.collection.Iterable (provided for optimization).

Construct a JsonObject from an scala.collection.Iterable (provided for optimization).

Attributes

Source:
JsonObject.scala
final def fromMap(map: Map[String, Json]): JsonObject

Construct a JsonObject from a map from keys to Json values.

Construct a JsonObject from a map from keys to Json values.

Note that the order of the fields is arbitrary.

Attributes

Source:
JsonObject.scala
final def singleton(key: String, value: Json): JsonObject

Construct a JsonObject with a single field.

Construct a JsonObject with a single field.

Attributes

Source:
JsonObject.scala

Concrete fields

final val empty: JsonObject

Construct an empty JsonObject.

Construct an empty JsonObject.

Attributes

Source:
JsonObject.scala

Implicits

Implicits

final implicit val eqJsonObject: Eq[JsonObject]

Attributes

Source:
JsonObject.scala
final implicit val showJsonObject: Show[JsonObject]

Attributes

Source:
JsonObject.scala