Returns the elements of this Value, fails if it is not a ujson.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 ujson.Bool
Returns the Boolean
value of this Value, fails if it is not
a ujson.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 ujson.Null, false otherwise
Returns the Double
value of this Value, fails if it is not
a ujson.Num
Returns an Option[Double] in case this Value is a 'Num'.
Returns the key/value map of this Value, fails if it is not a ujson.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 ujson.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.