object dsl
DSL for MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.play.json.compat.dsl._ Json.obj("int" -> int(1), "double" -> double(2.3D)) // { // "int": { "$numberInt": "1" }, // "double": { "$numberDouble": "2.3" } // }
- Alphabetic
- By Inheritance
- dsl
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decimal(d: BigDecimal): JsObject
Represents a scala.BigDecimal value using MongoDB Extended JSON syntax (v2).
Represents a scala.BigDecimal value using MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.play.json.compat.dsl.decimal Json.obj("field" -> decimal(BigDecimal("4"))) // { "field": { "$numberDecimal": "4" } }
- Annotations
- @inline()
- def double(d: Double): JsObject
Represents a scala.Double value using MongoDB Extended JSON syntax (v2).
Represents a scala.Double value using MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.play.json.compat.dsl.double Json.obj("field" -> double(3.4D)) // { "field": { "$numberDouble": "3.4" } }
- Annotations
- @inline()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def int(i: Int): JsObject
Represents a scala.Int value using MongoDB Extended JSON syntax (v2).
Represents a scala.Int value using MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.play.json.compat.dsl.int Json.obj("field" -> int(1)) // { "field": { "$numberInt": "1" } }
- Annotations
- @inline()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def long(l: Long): JsObject
Represents a scala.Long value using MongoDB Extended JSON syntax (v2).
Represents a scala.Long value using MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.play.json.compat.dsl.long Json.obj("field" -> long(2L)) // { "field": { "$numberLong": "2" } }
- Annotations
- @inline()
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def objectID(oid: BSONObjectID): JsObject
Represents a object ID using MongoDB Extended JSON syntax (v2).
Represents a object ID using MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.api.bson.BSONObjectID import reactivemongo.play.json.compat.dsl.objectID Json.obj("field" -> objectID(BSONObjectID.generate())) // { "field": { "$oid": "...binary repr" } }
- Annotations
- @inline()
- def symbol(name: String): JsObject
Represents a symbol using MongoDB Extended JSON syntax (v2).
Represents a symbol using MongoDB Extended JSON syntax (v2).
import play.api.libs.json.Json import reactivemongo.play.json.compat.dsl.symbol Json.obj("field" -> symbol("sym_name")) // { "field": { "$symbol": "sym_name" } }
- Annotations
- @inline()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()