LaxValueConverters

Implicit conversions for value types between play.api.libs.json and reactivemongo.api.bson, using lax conversions.

trait ToValue
trait FromValue
class Object
trait Matchable
class Any

Type members

Inherited types

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

Value members

Inherited methods

final protected def jsonJavaScript(bson: BSONJavaScript): JsObject
Inherited from:
SharedValueConverters
override def toString: String
Definition Classes
LaxValueConverters -> Any
Inherited from:
LaxValueConverters

Implicits

Inherited implicits

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
final implicit def fromBoolean(bson: BSONBoolean): JsBoolean
Inherited from:
SharedValueConverters
final implicit override def fromDateTime(bson: BSONDateTime): JsNumber

See BSONDateTime.value

See BSONDateTime.value

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

See BSONJavaScript.value

See BSONJavaScript.value

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

See syntax:

See syntax:

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

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

See syntax:

See syntax:

{ "$maxKey": 1 }

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

See syntax:

See syntax:

{ "$minKey": 1 }

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

See syntax:

See syntax:

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

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

See syntax:

See syntax:

{ "$undefined": true }

Inherited from:
FromValueCompat
final implicit def fromValue(bson: BSONValue): JsValue
Inherited from:
LaxValueConvertersLowPriority1
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
final implicit def toJsValueWrapper[T <: BSONValue](value: T): JsValueWrapper
Inherited from:
ToValue
final implicit def toNull(_null: JsNull.type): BSONNull
Inherited from:
ToValueCompat
final implicit def toNumber(js: JsNumber): BSONValue
Inherited from:
SharedValueConverters
@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