implicit final class ApsoJsonObject extends AnyVal
- Alphabetic
- By Inheritance
- ApsoJsonObject
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ApsoJsonObject(json: Json)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
deleteField(fieldPath: String, separator: Char = '.'): Json
Delete a field on a json object.
Delete a field on a json object.
Eg. {"a":1,"b":{"c":2},"d":null}.deleteField("b.c") = {"a":1,"b":{},"d":null}
- fieldPath
path from the root of the json object to the field
- separator
character that separates each element of the path
- returns
the json without the deleted value
-
def
flattenedKeySet(separator: String = ".", ignoreNull: Boolean = true): Set[String]
Returns a set of keys of this object where nested keys are separated by a separator character.
Returns a set of keys of this object where nested keys are separated by a separator character.
Eg. {"a":1,"b":{"c":2},"d":null}.flattenedKeySet(".", ignoreNull = true) = Set("a","b.c")
- separator
character separator to use
- ignoreNull
if set, fields with a null value are ignored
- returns
flattened key set
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
def
getCursor(fieldPath: String, separator: Char): ACursor
Returns a cursor on the field on the end of the tree, separated by the separator character.
Returns a cursor on the field on the end of the tree, separated by the separator character.
- fieldPath
path from the root of the json object to the field
- separator
character that separates each element of the path
- returns
cursor to the field value
-
def
getField[A](fieldPath: String, separator: Char = '.')(implicit arg0: Decoder[A]): Option[A]
Returns the value of the field on the end of the tree, separated by the separator character.
Returns the value of the field on the end of the tree, separated by the separator character.
Eg. {"a":{"b":1}}.getField("a.b") = 1
- A
type of the field value
- fieldPath
path from the root of the json object to the field
- separator
character that separates each element of the path
- returns
an option with the field value
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val json: Json
-
def
toString(): String
- Definition Classes
- Any