case class JBool(value: Boolean) extends JValue with Product with Serializable
- Source
- JValue.scala
- Alphabetic
- By Inheritance
- JBool
- JValue
- Serializable
- Serializable
- Product
- Equals
- Diffable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JBool(value: Boolean)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
++(other: JValue): JValue
Concatenate with another JSON.
Concatenate with another JSON. 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)))
- Definition Classes
- JValue
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(i: Int): JValue
Return nth element from JSON.
Return nth element from JSON. Meaningful only to JArray, JObject and JField. Returns JNothing for other types.
Example:
JArray(JInt(1) :: JInt(2) :: Nil)(1) == JInt(2)
- Definition Classes
- JValue
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
children: List[JValue]
Return direct child elements.
Return direct child elements.
Example:
JArray(JInt(1) :: JInt(2) :: Nil).children == List(JInt(1), JInt(2))
- Definition Classes
- JValue
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
diff(other: JValue): Diff
Return a diff.
Return a diff.
- Definition Classes
- Diffable
- See also
org.json4s.Diff#diff
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toOption: Option[JValue]
When this org.json4s.JValue is a org.json4s.JNothing or a org.json4s.JNull, this method returns scala.None When it has a value it will return scala.Some
When this org.json4s.JValue is a org.json4s.JNothing or a org.json4s.JNull, this method returns scala.None When it has a value it will return scala.Some
- Definition Classes
- JValue
-
def
toSome: Option[JValue]
When this org.json4s.JValue is a org.json4s.JNothing, this method returns scala.None When it has a value it will return scala.Some
When this org.json4s.JValue is a org.json4s.JNothing, this method returns scala.None When it has a value it will return scala.Some
- Definition Classes
- JValue
- val value: Boolean
-
def
values: Boolean
Return unboxed values from JSON
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()