Trait/Object

reactivemongo.play.json.compat

ValueConverters

Related Docs: object ValueConverters | package compat

Permalink

trait ValueConverters extends FromToValue with SharedValueConverters with LowPriority1Converters with TemporalObjectConverters

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

import play.api.libs.json.JsValue
import reactivemongo.api.bson.BSONValue
import reactivemongo.play.json.compat.ValueConverters._

def foo(v: BSONValue): JsValue =
  implicitly[JsValue](v) // ValueConverters.fromValue

def bar(v: JsValue): BSONValue =
  implicitly[BSONValue](v) // ValueConverters.toValue

Note: Logger reactivemongo.api.play.json.ValueConverters can be used to debug.

Linear Supertypes
TemporalObjectConverters, LowPriority1Converters, SharedValueConverters, SharedValueConvertersLowPriority1, FromToValue, ToValue, ToValueCompat, FromValue, FromValueAPI, FromValueCompat, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ValueConverters
  2. TemporalObjectConverters
  3. LowPriority1Converters
  4. SharedValueConverters
  5. SharedValueConvertersLowPriority1
  6. FromToValue
  7. ToValue
  8. ToValueCompat
  9. FromValue
  10. FromValueAPI
  11. FromValueCompat
  12. AnyRef
  13. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final type JsonJavaScript = JsObject

    Permalink
    Definition Classes
    ValueConvertersFromValue
  2. final type JsonNumber = JsNumber

    Permalink

    JSON representation for numbers

    JSON representation for numbers

    Definition Classes
    ValueConvertersFromValue
  3. final type JsonObjectID = JsObject

    Permalink
    Definition Classes
    ValueConvertersFromValue
  4. final type JsonSymbol = JsObject

    Permalink
    Definition Classes
    ValueConvertersFromValue
  5. type JsonTime = JsObject

    Permalink
    Definition Classes
    TemporalObjectConverters

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to any2stringadd[ValueConverters] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ValueConverters, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to ArrowAssoc[ValueConverters] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (ValueConverters) ⇒ Boolean, msg: ⇒ Any): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (ValueConverters) ⇒ Boolean): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): ValueConverters

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to Ensuring[ValueConverters] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to StringFormat[ValueConverters] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. implicit final def fromArray(arr: BSONArray): JsArray

    Permalink
    Definition Classes
    FromValue
  17. implicit final def fromBinary(bin: BSONBinary): JsObject

    Permalink

    See syntax:

    See syntax:

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

    Definition Classes
    SharedValueConverters
  18. implicit final def fromBoolean(bson: BSONBoolean): JsBoolean

    Permalink
    Definition Classes
    SharedValueConverters
  19. implicit def fromDateTime(bson: BSONDateTime): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$date": { "$numberLong": "<millis>" } }

    Definition Classes
    TemporalObjectConverters
  20. implicit final def fromDecimal(bson: BSONDecimal): JsObject

    Permalink
    Definition Classes
    SharedValueConverters
  21. implicit def fromDocument(bson: BSONDocument)(implicit conv: FromValue): JsObject

    Permalink
    Definition Classes
    SharedValueConverters
  22. implicit final def fromDouble(bson: BSONDouble): JsNumber

    Permalink
    Definition Classes
    ValueConvertersFromValue
  23. implicit final def fromInteger(bson: BSONInteger): JsNumber

    Permalink
    Definition Classes
    ValueConvertersFromValue
  24. implicit def fromJavaScript(bson: BSONJavaScript): JsObject

    Permalink

    See syntax:

    See syntax:

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

    Definition Classes
    ValueConvertersFromValue
    Annotations
    @inline()
  25. implicit final def fromJavaScriptWS(bson: BSONJavaScriptWS): JsObject

    Permalink

    See syntax:

    See syntax:

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

    Definition Classes
    SharedValueConverters
  26. implicit final def fromLong(bson: BSONLong): JsNumber

    Permalink
    Definition Classes
    ValueConvertersFromValue
  27. implicit final val fromMaxKey: (BSONMaxKey) ⇒ JsObject

    Permalink

    See syntax:

    See syntax:

    { "$maxKey": 1 }

    Definition Classes
    FromValueCompat
  28. implicit final val fromMinKey: (BSONMinKey) ⇒ JsObject

    Permalink

    See syntax:

    See syntax:

    { "$minKey": 1 }

    Definition Classes
    FromValueCompat
  29. implicit val fromNull: (BSONNull) ⇒ JsNull.type

    Permalink
    Definition Classes
    FromValueCompat
  30. implicit final def fromObject(js: JsObject): BSONValue

    Permalink
    Definition Classes
    SharedValueConverters
  31. implicit final def fromObjectID(bson: BSONObjectID): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$oid": "<ObjectId bytes>" }

    Definition Classes
    ValueConvertersFromValue
    Annotations
    @inline()
    See also

    dsl.objectID

  32. implicit final def fromRegex(rx: BSONRegex): JsObject

    Permalink

    See syntax:

    See syntax:

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

    Definition Classes
    SharedValueConverters
  33. implicit final def fromStr(bson: BSONString): JsString

    Permalink
    Definition Classes
    FromValue
  34. implicit final def fromSymbol(bson: BSONSymbol): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$symbol": "<name>" }

    Definition Classes
    ValueConvertersFromValue
    Annotations
    @inline()
    See also

    dsl.symbol

  35. implicit def fromTimestamp(ts: BSONTimestamp): JsObject

    Permalink

    See syntax:

    See syntax:

    { "$timestamp": {"t": <t>, "i": } }`

    Definition Classes
    TemporalObjectConverters
  36. implicit final val fromUndefined: (BSONUndefined) ⇒ JsObject

    Permalink

    See syntax:

    See syntax:

    { "$undefined": true }

    Definition Classes
    FromValueCompat
  37. implicit final def fromValue(bson: BSONValue): JsValue

    Permalink
    Definition Classes
    LowPriority1Converters
    Annotations
    @inline()
  38. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  39. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  41. final def jsonJavaScript(bson: BSONJavaScript): JsObject

    Permalink
    Attributes
    protected
    Definition Classes
    SharedValueConverters
  42. final def jsonValue(bson: BSONValue)(implicit conv: FromValue): JsValue

    Permalink
    Attributes
    protected
    Definition Classes
    FromValue
  43. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  44. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  45. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. implicit final def toArray(arr: JsArray): BSONArray

    Permalink
    Definition Classes
    ToValue
  48. implicit final def toBoolean(js: JsBoolean): BSONBoolean

    Permalink
    Definition Classes
    ToValue
  49. implicit final def toDocument(js: JsObject): BSONDocument

    Permalink
    Definition Classes
    SharedValueConvertersLowPriority1
  50. implicit final def toJsValueWrapper[T <: BSONValue](value: T): JsValueWrapper

    Permalink
    Definition Classes
    ToValue
  51. implicit final val toNull: (JsNull.type) ⇒ BSONNull

    Permalink
    Definition Classes
    ToValueCompat
  52. implicit final def toNumber(js: JsNumber): BSONValue

    Permalink
    Definition Classes
    SharedValueConverters
  53. implicit final def toStr(js: JsString): BSONValue

    Permalink
    Definition Classes
    ToValue
    Annotations
    @SuppressWarnings()
  54. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  55. implicit final def toValue(js: JsValue): BSONValue

    Permalink
    Definition Classes
    SharedValueConvertersLowPriority1
  56. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  59. def [B](y: B): (ValueConverters, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ValueConverters to ArrowAssoc[ValueConverters] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from TemporalObjectConverters

Inherited from LowPriority1Converters

Inherited from SharedValueConverters

Inherited from SharedValueConvertersLowPriority1

Inherited from FromToValue

Inherited from ToValue

Inherited from ToValueCompat

Inherited from FromValue

Inherited from FromValueAPI

Inherited from FromValueCompat

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ValueConverters to any2stringadd[ValueConverters]

Inherited by implicit conversion StringFormat from ValueConverters to StringFormat[ValueConverters]

Inherited by implicit conversion Ensuring from ValueConverters to Ensuring[ValueConverters]

Inherited by implicit conversion ArrowAssoc from ValueConverters to ArrowAssoc[ValueConverters]

Ungrouped