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)))
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)
Return direct child elements.
Return direct child elements.
Example:
JArray(JInt(1) :: JInt(2) :: Nil).children == List(JInt(1), JInt(2))
Return a diff.
Return a diff.
org.json4s.Diff#diff
When this org.json4s.JsonAST.JValue is a org.json4s.JsonAST.JNothing or a org.json4s.JsonAST.JNull, this method returns scala.None When it has a value it will return scala.Some
When this org.json4s.JsonAST.JValue is a org.json4s.JsonAST.JNothing or a org.json4s.JsonAST.JNull, this method returns scala.None When it has a value it will return scala.Some
When this org.json4s.JsonAST.JValue is a org.json4s.JsonAST.JNothing, this method returns scala.None When it has a value it will return scala.Some
When this org.json4s.JsonAST.JValue is a org.json4s.JsonAST.JNothing, this method returns scala.None When it has a value it will return scala.Some
Return unboxed values from JSON
When this org.json4s.JsonAST.JValue is a org.json4s.JsonAST.JNothing or a org.json4s.JsonAST.JNull, this method returns scala.None When it has a value it will return scala.Some
When this org.json4s.JsonAST.JValue is a org.json4s.JsonAST.JNothing or a org.json4s.JsonAST.JNull, this method returns scala.None When it has a value it will return scala.Some
(Since version 3.1.0) Use toOption instead