FromValue

reactivemongo.play.json.compat.FromValue
See theFromValue companion object
sealed trait FromValue

Conversion API from BSON to JSON values

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Types

JSON representation for numbers

JSON representation for numbers

Attributes

JSON representation for temporal types

JSON representation for temporal types

Attributes

Value members

Abstract methods

def fromBinary(bin: BSONBinary): JsObject
def fromBoolean(bson: BSONBoolean): JsBoolean
def fromDateTime(bson: BSONDateTime): JsonTime
def fromDecimal(bson: BSONDecimal): JsObject

See syntax:

See syntax:

{ "$numberDecimal": "<number>" }

Attributes

def fromDocument(bson: BSONDocument)(implicit conv: FromValue): JsObject

Converts to a JSON object

Converts to a JSON object

Attributes

def fromDouble(bson: BSONDouble): JsonNumber
def fromInteger(bson: BSONInteger): JsonNumber
def fromJavaScript(bson: BSONJavaScript): JsonJavaScript
def fromJavaScriptWS(bson: BSONJavaScriptWS): JsObject
def fromLong(bson: BSONLong): JsonNumber
def fromObject(js: JsObject): BSONValue

First checks whether an explicit type (e.g. $binary) is specified, otherwise converts to a BSON document.

First checks whether an explicit type (e.g. $binary) is specified, otherwise converts to a BSON document.

Attributes

def fromObjectID(bson: BSONObjectID): JsonObjectID
def fromRegex(rx: BSONRegex): JsObject
def fromSymbol(bson: BSONSymbol): JsonSymbol
def fromTimestamp(ts: BSONTimestamp): JsonTime
def fromValue(bson: BSONValue): JsValue

Implicits

Implicits

final implicit def fromArray(arr: BSONArray): JsArray
final implicit def fromStr(bson: BSONString): JsString

Inherited implicits

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 fromUndefined(_undef: BSONUndefined): JsObject

See syntax:

See syntax:

{ "$undefined": true }

Attributes

Inherited from:
FromValueCompat (hidden)