Returns the elements of this Value, fails if it is not a Arr
Returns The optional elements of this Value in case this Value is a 'Arr'.
Returns the Boolean
value of this Value, fails if it is not
a Bool
Returns an Optional Boolean
value of this Value in case this Value is a 'Bool'.
Returns true if the value of this Value is Null, false otherwise
Returns the BigDecimal
value of this Value, fails if it is not
a Num
Returns an Option[BigDecimal] in case this Value is a 'Num'.
Returns the key/value map of this Value, fails if it is not a Obj
Returns an Optional key/value map of this Value in case this Value is a 'Obj'.
Returns the String
value of this Value, fails if it is not
a Str
Returns an Optional String
value of this Value in case this Value is a 'String'.
Update a value in-place.
Update a value in-place. Takes an Int
or a String
, through the
implicitly-constructe Value.Selector type.
We cannot just overload update
on s: Int
and s: String
because
of type inference problems in Scala 2.11.