| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
object Extraction
extends
ScalaObject
def this
|
| !=.. |
final def !=(arg0 : Any)
|
Boolean | Any |
| !=.. |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| ==.. |
final def ==(arg0 : Any)
|
Boolean | Any |
| asInstanceOf.. |
final def asInstanceOf[T0]
|
T0 | Any |
| clone.. |
protected def clone
|
Object | AnyRef |
| decompose.. |
def decompose(a : Any)(implicit formats : Formats)
Decompose a case class into JSON
[details]
Example:
case class Person(name: String, age: Int)
implicit val formats = net.liftweb.json.DefaultFormats
Extraction.decompose(Person("joe", 25)) == JObject(JField("age",JInt(25)) :: JField("name",JString("joe")) :: Nil)
|
JValue | |
| eq.. |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals.. |
def equals(arg0 : Any)
|
Boolean | AnyRef |
| extract.. |
def extract(json : JValue, target : TypeInfo)(implicit formats : Formats)
|
Any | |
| extract.. |
def extract[A](json : JValue)(implicit formats : Formats, implicit mf : Manifest[A])
Extract a case class from JSON
[details]
|
A | |
| extractOpt.. |
def extractOpt[A](json : JValue)(implicit formats : Formats, implicit mf : Manifest[A])
Extract a case class from JSON
[details]
|
Option[A] | |
| finalize.. |
protected def finalize
|
Unit | AnyRef |
| flatten.. |
def flatten(json : JValue)
Flattens the JSON to a key/value map
|
Map[String, String] | |
| getClass.. |
final def getClass
|
Class[Any] | AnyRef |
| hashCode.. |
def hashCode
|
Int | AnyRef |
| isInstanceOf.. |
final def isInstanceOf[T0]
|
Boolean | Any |
| ne.. |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify.. |
final def notify
|
Unit | AnyRef |
| notifyAll.. |
final def notifyAll
|
Unit | AnyRef |
| synchronized.. |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString.. |
def toString
|
String | AnyRef |
| unflatten.. |
def unflatten(map : Map[String, String])
Unflattens a key/value map to a JSON object
|
JValue | |
| wait.. |
final def wait
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait.. |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |