net.liftweb.json.JsonAST.JDouble

class JDouble

case class JDouble(val num : Double)

 extends JValue with Product




Source: JsonAST.scala(313)

 Constructors

def this(num : Double)

 Fields

children.. def children
Return direct child elements [details]

Example:

     JArray(JInt(1) :: JInt(2) :: Nil).children == List(JInt(1), JInt(2))
     
List[JValue] JValue
productArity.. override def productArity Int
productPrefix.. override def productPrefix String
values.. def values
Return unboxed values from JSON

Example:

     JObject(JField("name", JString("joe")) :: Nil)
        
              [details]
              
values == Map("name" -> "joe")
Double

 Methods

!=.. final def !=(arg0 : Any) Boolean Any
!=.. final def !=(arg0 : Object) Boolean AnyRef
++.. def ++(other : JValue)
Concatenate with another JSON [details]
This is a concatenation monoid: (JValue, ++, JNothing)

Example:

     JArray(JInt(1) :: JInt(2) :: Nil) ++ JArray(JInt(3) :: Nil) ==
     JArray(List(JInt(1), JInt(2), JInt(3)))
     
JValue JValue
==.. final def ==(arg0 : Object) Boolean AnyRef
==.. final def ==(arg0 : Any) Boolean Any
\.. def \[A <: JValue](clazz : Class[A])
XPath-like expression to query JSON fields by type [details]
Matches only fields on next level.

Example:

     json \ classOf[JInt]
     
List[Values] JValue
\.. def \(nameToFind : String)
XPath-like expression to query JSON fields by name [details]
Matches only fields on next level.

Example:

     json \ "name"
     
JValue JValue
\\.. def \\[A <: JValue](clazz : Class[A])
XPath-like expression to query JSON fields by type [details]
Returns all matching fields.

Example:

     json \\ classOf[JInt]
     
List[Values] JValue
\\.. def \\(nameToFind : String)
XPath-like expression to query JSON fields by name [details]
Returns all matching fields.

Example:

     json \\ "name"
     
JValue JValue
apply.. def apply(i : Int)
Return nth element from JSON [details]
Meaningful only to JArray, JObject and JField. Returns JNothing for other types.

Example:

     JArray(JInt(1) :: JInt(2) :: Nil)(1) == JInt(2)
     
JValue JValue
asInstanceOf.. final def asInstanceOf[T0] T0 Any
clone.. protected def clone Object AnyRef
diff.. def diff(other : JValue)
Return a diff [details]
see
- net.liftweb.json.Diff#diff
Diff Diffable
eq.. final def eq(arg0 : Object) Boolean AnyRef
equals.. override def equals(arg0 : Any) Boolean
extract.. def extract[A](implicit formats : Formats, implicit mf : Manifest[A])
Extract a case class from a JSON [details]

Example:

     case class Person(name: String)
     JObject(JField("name", JString("joe")) :: Nil).extract[Foo] == Person("joe")
     
A JValue
extractOpt.. def extractOpt[A](implicit formats : Formats, implicit mf : Manifest[A])
Extract a case class from a JSON [details]

Example:

     case class Person(name: String)
     JObject(JField("name", JString("joe")) :: Nil).extractOpt[Foo] == Some(Person("joe"))
     
Option[A] JValue
filter.. def filter(p : (JValue) => Boolean)
Return a List of all elements which matches the given predicate [details]

Example:

     JArray(JInt(1) :: JInt(2) :: Nil) filter { case JInt(x) => x > 1; case _ => false }
     
List[JValue] JValue
finalize.. protected def finalize Unit AnyRef
find.. def find(p : (JValue) => Boolean)
Return the first element from JSON which matches the given predicate [details]

Example:

     JArray(JInt(1) :: JInt(2) :: Nil) find { _ == JInt(2) } == Some(JInt(2))
     
Option[JValue] JValue
fold.. def fold[A](z : A)(f : (A, JValue) => A)
Return a combined value by folding over JSON by applying a function f for each element [details]
The initial value is z.
A JValue
getClass.. final def getClass Class[Any] AnyRef
hashCode.. override def hashCode Int
isInstanceOf.. final def isInstanceOf[T0] Boolean Any
map.. def map(f : (JValue) => JValue)
Return a new JValue resulting from applying the given function f to each element in JSON [details]

Example:

     JArray(JInt(1) :: JInt(2) :: Nil) map { case JInt(x) => JInt(x+1); case x => x }
     
JValue JValue
merge.. def merge(other : JValue)
Return merged JSON [details]
see
- net.liftweb.json.Merge#merge
JValue Mergeable
ne.. final def ne(arg0 : Object) Boolean AnyRef
notify.. final def notify Unit AnyRef
notifyAll.. final def notifyAll Unit AnyRef
productElement.. override def productElement(arg0 : Int) Any
remove.. def remove(p : (JValue) => Boolean)
Return a JSON where all elements matching the given predicate are removed [details]

Example:

     JArray(JInt(1) :: JInt(2) :: JNull :: Nil) remove { _ == JNull }
     
JValue JValue
replace.. def replace(l : List[String], replacement : JValue)
Return a new JValue resulting from replacing the value at the specified field path with the replacement value provided [details]
This has no effect if the path is empty or if the value is not a JObject instance.

Example:

     JObject(List(JField("foo", JObject(List(JField("bar", JInt(1))))))).replace("foo" :: "bar" :: Nil, JString("baz"))
     // returns JObject(List(JField("foo", JObject(List(JField("bar", JString("baz")))))))
     
JValue JValue
synchronized.. final def synchronized[T0](arg0 : T0) T0 AnyRef
toString.. override def toString String
transform.. def transform(f : PartialFunction[JValue, JValue])
Return a new JValue resulting from applying the given partial function f to each element in JSON [details]

Example:

     JArray(JInt(1) :: JInt(2) :: Nil) transform { case JInt(x) => JInt(x+1) }
     
JValue 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
Copyright (c) 2006-2010 WorldWide Conferencing, LLC. All Rights Reserved.