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" }
trait ToValue
trait FromValue
class Object
trait Matchable
class Any
lax.type

Type members

Inherited types

final type JsonJavaScript = JsString
Inherited from:
LaxValueConverters (hidden)
final type JsonNumber = JsNumber
Inherited from:
LaxValueConverters (hidden)
final type JsonObjectID = JsString
Inherited from:
LaxValueConverters (hidden)
final type JsonSymbol = JsString
Inherited from:
LaxValueConverters (hidden)
final type JsonTime = JsNumber
Inherited from:
LaxValueConverters (hidden)

Value members

Concrete methods

override def toString: String
Definition Classes
LaxValueConverters -> Any

Inherited methods

final protected def jsonJavaScript(bson: BSONJavaScript): JsObject
Inherited from:
SharedValueConverters (hidden)

Implicits

Implicits

implicit def toValue: ToValue

Inherited implicits

implicit val bsonDateTimeReader: BSONReader[BSONDateTime]

Reads a BSONDateTime from a BSONLong.

Reads a BSONDateTime from a BSONLong.

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

Reads a BSONObjectID from a JSON string.

Reads a BSONObjectID from a JSON string.

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

Reads a BSONSymbol from a JSON string.

Reads a BSONSymbol from a JSON string.

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

Reads a BSONTimestamp from a JSON number.

Reads a BSONTimestamp from a JSON number.

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

Reads a BSONDateTime from a JSON number.

Reads a BSONDateTime from a JSON number.

Inherited from:
LaxHandlerWorkarounds (hidden)
final implicit def fromArray(arr: BSONArray): JsArray
Inherited from:
FromValue
final implicit def fromBinary(bin: BSONBinary): JsObject

See syntax:

See syntax:

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

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

See BSONDateTime.value

See BSONDateTime.value

Definition Classes
LaxValueConverters -> FromValue
Inherited from:
LaxValueConverters (hidden)
final implicit def fromDecimal(bson: BSONDecimal): JsObject
Inherited from:
SharedValueConverters (hidden)
implicit def fromDocument(bson: BSONDocument)(implicit conv: FromValue): JsObject
Inherited from:
SharedValueConverters (hidden)
final implicit def fromDouble(bson: BSONDouble): JsNumber
Inherited from:
LaxValueConverters (hidden)
final implicit def fromInteger(bson: BSONInteger): JsNumber
Inherited from:
LaxValueConverters (hidden)
final implicit override def fromJavaScript(bson: BSONJavaScript): JsString

See BSONJavaScript.value

See BSONJavaScript.value

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

See syntax:

See syntax:

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

Inherited from:
SharedValueConverters (hidden)
final implicit def fromLong(bson: BSONLong): JsNumber
Inherited from:
LaxValueConverters (hidden)
final implicit def fromMaxKey(_max: BSONMaxKey): JsObject

See syntax:

See syntax:

{ "$maxKey": 1 }

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

See syntax:

See syntax:

{ "$minKey": 1 }

Inherited from:
FromValueCompat (hidden)
implicit def fromNull(_null: BSONNull): JsNull.type
Inherited from:
FromValueCompat (hidden)
final implicit def fromObject(js: JsObject): BSONValue
Inherited from:
SharedValueConverters (hidden)
final implicit def fromObjectID(bson: BSONObjectID): JsString
Inherited from:
LaxValueConverters (hidden)
final implicit def fromRegex(rx: BSONRegex): JsObject

See syntax:

See syntax:

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

Inherited from:
SharedValueConverters (hidden)
final implicit def fromStr(bson: BSONString): JsString
Inherited from:
FromValue
final implicit def fromSymbol(bson: BSONSymbol): JsString
Inherited from:
LaxValueConverters (hidden)
final implicit override def fromTimestamp(bson: BSONTimestamp): JsNumber
Definition Classes
LaxValueConverters -> FromValue
Inherited from:
LaxValueConverters (hidden)
final implicit def fromUndefined(_undef: BSONUndefined): JsObject

See syntax:

See syntax:

{ "$undefined": true }

Inherited from:
FromValueCompat (hidden)
final implicit def fromValue(bson: BSONValue): JsValue
Inherited from:
LaxValueConvertersLowPriority1 (hidden)
implicit val javaScriptBSONReader: BSONReader[BSONJavaScript]

Reads a BSONJavaScript from a BSONString.

Reads a BSONJavaScript from a BSONString.

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

Reads a BSONJavaScript from a JSON string.

Reads a BSONJavaScript from a JSON string.

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

Reads a BSONObjectID from a JSON string.

Reads a BSONObjectID from a JSON string.

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

Reads a BSONSymbol from a JSON string.

Reads a BSONSymbol from a JSON string.

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

Reads a BSONTimestamp from a JSON number.

Reads a BSONTimestamp from a JSON number.

Inherited from:
LaxHandlerWorkarounds (hidden)
final implicit def toArray(arr: JsArray): BSONArray
Inherited from:
ToValue
final implicit def toBoolean(js: JsBoolean): BSONBoolean
Inherited from:
ToValue
final implicit def toDocument(js: JsObject): BSONDocument
Inherited from:
SharedValueConvertersLowPriority1 (hidden)
final implicit def toJsValueWrapper[T <: BSONValue](value: T): JsValueWrapper
Inherited from:
ToValue
final implicit def toNull(_null: JsNull.type): BSONNull
Inherited from:
ToValueCompat (hidden)
final implicit def toNumber(js: JsNumber): BSONValue
Inherited from:
SharedValueConverters (hidden)
@SuppressWarnings(scala.Array.apply[java.lang.String]("NullParameter")(scala.reflect.ClassTag.apply[java.lang.String](classOf[java.lang.String])))
final implicit def toStr(js: JsString): BSONValue
Inherited from:
ToValue
final implicit def toValue(js: JsValue): BSONValue
Inherited from:
SharedValueConvertersLowPriority1 (hidden)