JObjectParser

class Object
trait Matchable
class Any

Type members

Classlikes

object Parser

Value members

Concrete methods

def defaultStringProcessor(s: String): Object
def parse(jo: JValue)(formats: Formats): DBObject
def serialize(a: Any)(formats: Formats): JValue

Concrete fields

val stringProcessor: AtomicReference[String => Object]

Set this to override JObjectParser turning strings that are valid ObjectIds into actual ObjectIds. For example, place the following in Boot.boot:

Set this to override JObjectParser turning strings that are valid ObjectIds into actual ObjectIds. For example, place the following in Boot.boot:

JObjectParser.stringProcessor.default.set((s: String) => s)