Returns the elements of this Value, fails if it is not a Value.Arr
Returns the Boolean
value of this Value, fails if it is not
a Value.Bool
Returns the Boolean
value of this Value, fails if it is not
a Value.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 Value.Num
Returns the key/value map of this Value, fails if it is not a Value.Obj
Returns the String
value of this Value, fails if it is not
a Value.Str
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.