lax

reactivemongo.play.json.compat.package$.lax$
object lax
import play.api.libs.json._
import reactivemongo.api.bson._
import reactivemongo.play.json.compat.lax._

Json.obj("_id" -> BSONObjectID.generate()) // objectIdWrites
// { "_id": "as_string_instead_of_ObjectId" }

Attributes

Graph
Supertypes
trait ToValue
trait FromValue
class Object
trait Matchable
class Any
Self type
lax.type

Members list

Concise view

Type members

Inherited types

final type JsonJavaScript = JsString

Attributes

Inherited from:
LaxValueConverters (hidden)
final type JsonNumber = JsNumber

JSON representation for numbers

JSON representation for numbers

Attributes

Inherited from:
LaxValueConverters (hidden)
final type JsonObjectID = JsString

Attributes

Inherited from:
LaxValueConverters (hidden)
final type JsonSymbol = JsString

Attributes

Inherited from:
LaxValueConverters (hidden)
final type JsonTime = JsNumber

JSON representation for temporal types

JSON representation for temporal types

Attributes

Inherited from:
LaxValueConverters (hidden)

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
LaxValueConverters -> Any

Inherited methods

final protected def jsonJavaScript(bson: BSONJavaScript): JsObject

Attributes

Inherited from:
SharedValueConverters (hidden)

Implicits

Implicits

implicit def fromValue: FromValue
implicit def toValue: ToValue

Inherited implicits

implicit val bsonDateTimeReader: BSONReader[BSONDateTime]

Reads a BSONDateTime from a BSONLong.

Reads a BSONDateTime from a BSONLong.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val bsonObjectIDReader: BSONReader[BSONObjectID]

Reads a BSONObjectID from a JSON string.

Reads a BSONObjectID from a JSON string.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val bsonSymbolReader: BSONReader[BSONSymbol]

Reads a BSONSymbol from a JSON string.

Reads a BSONSymbol from a JSON string.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val bsonTimestampReader: BSONReader[BSONTimestamp]

Reads a BSONTimestamp from a JSON number.

Reads a BSONTimestamp from a JSON number.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val dateTimeReads: Reads[BSONDateTime]

Reads a BSONDateTime from a JSON number.

Reads a BSONDateTime from a JSON number.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
final implicit def fromArray(arr: BSONArray): JsArray

Attributes

Inherited from:
FromValue
final implicit def fromBinary(bin: BSONBinary): JsObject

See syntax:

See syntax:

{ "$binary": { "base64": "<payload>", "subType": "<t>" } }

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit def fromBoolean(bson: BSONBoolean): JsBoolean

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit override def fromDateTime(bson: BSONDateTime): JsNumber

See BSONDateTime.value

See BSONDateTime.value

Attributes

Definition Classes
LaxValueConverters -> FromValue
Inherited from:
LaxValueConverters (hidden)
final implicit def fromDecimal(bson: BSONDecimal): JsObject

Attributes

Inherited from:
SharedValueConverters (hidden)
implicit def fromDocument(bson: BSONDocument)(implicit conv: FromValue): JsObject

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit def fromDouble(bson: BSONDouble): JsNumber

Attributes

Inherited from:
LaxValueConverters (hidden)
final implicit def fromInteger(bson: BSONInteger): JsNumber

Attributes

Inherited from:
LaxValueConverters (hidden)
final implicit override def fromJavaScript(bson: BSONJavaScript): JsString

See BSONJavaScript.value

See BSONJavaScript.value

Attributes

Definition Classes
LaxValueConverters -> FromValue
Inherited from:
LaxValueConverters (hidden)
final implicit def fromJavaScriptWS(bson: BSONJavaScriptWS): JsObject

See syntax:

See syntax:

{ "$code": "<javascript>", "$scope": { } }

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit def fromLong(bson: BSONLong): JsNumber

Attributes

Inherited from:
LaxValueConverters (hidden)
final implicit def fromMaxKey(_max: BSONMaxKey): JsObject

See syntax:

See syntax:

{ "$maxKey": 1 }

Attributes

Inherited from:
FromValueCompat (hidden)
final implicit def fromMinKey(_min: BSONMinKey): JsObject

See syntax:

See syntax:

{ "$minKey": 1 }

Attributes

Inherited from:
FromValueCompat (hidden)
implicit def fromNull(_null: BSONNull): JsNull.type

Attributes

Inherited from:
FromValueCompat (hidden)
final implicit def fromObject(js: JsObject): BSONValue

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit def fromObjectID(bson: BSONObjectID): JsString

Attributes

Inherited from:
LaxValueConverters (hidden)
final implicit def fromRegex(rx: BSONRegex): JsObject

See syntax:

See syntax:

{ "$regularExpression": { "pattern": "<regexPattern>", "options": "<options>" } }

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit def fromStr(bson: BSONString): JsString

Attributes

Inherited from:
FromValue
final implicit def fromSymbol(bson: BSONSymbol): JsString

Attributes

Inherited from:
LaxValueConverters (hidden)
final implicit override def fromTimestamp(bson: BSONTimestamp): JsNumber

Attributes

Definition Classes
LaxValueConverters -> FromValue
Inherited from:
LaxValueConverters (hidden)
final implicit def fromUndefined(_undef: BSONUndefined): JsObject

See syntax:

See syntax:

{ "$undefined": true }

Attributes

Inherited from:
FromValueCompat (hidden)
final implicit def fromValue(bson: BSONValue): JsValue

Attributes

Inherited from:
LaxValueConvertersLowPriority1 (hidden)
implicit val javaScriptBSONReader: BSONReader[BSONJavaScript]

Reads a BSONJavaScript from a BSONString.

Reads a BSONJavaScript from a BSONString.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val javaScriptReads: Reads[BSONJavaScript]

Reads a BSONJavaScript from a JSON string.

Reads a BSONJavaScript from a JSON string.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val objectIDReads: Reads[BSONObjectID]

Reads a BSONObjectID from a JSON string.

Reads a BSONObjectID from a JSON string.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val symbolReads: Reads[BSONSymbol]

Reads a BSONSymbol from a JSON string.

Reads a BSONSymbol from a JSON string.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
implicit val timestampReads: Reads[BSONTimestamp]

Reads a BSONTimestamp from a JSON number.

Reads a BSONTimestamp from a JSON number.

Attributes

Inherited from:
LaxHandlerWorkarounds (hidden)
final implicit def toArray(arr: JsArray): BSONArray

Attributes

Inherited from:
ToValue
final implicit def toBoolean(js: JsBoolean): BSONBoolean

Attributes

Inherited from:
ToValue
final implicit def toDocument(js: JsObject): BSONDocument

Attributes

Inherited from:
SharedValueConvertersLowPriority1 (hidden)
final implicit def toJsValueWrapper[T <: BSONValue](value: T): JsValueWrapper

Attributes

Inherited from:
ToValue
final implicit def toNull(_null: JsNull.type): BSONNull

Attributes

Inherited from:
ToValueCompat (hidden)
final implicit def toNumber(js: JsNumber): BSONValue

Attributes

Inherited from:
SharedValueConverters (hidden)
final implicit def toStr(js: JsString): BSONValue

Attributes

Inherited from:
ToValue
final implicit def toValue(js: JsValue): BSONValue

Attributes

Inherited from:
SharedValueConvertersLowPriority1 (hidden)