json.value
Type members
Classlikes
represents an index in a Json array
represents an index in a Json array
- Value parameters:
- i
the number of the index
- Companion:
- object
represents an immutable Json array. There are several ways of creating a Json array, being the most common the following:
represents an immutable Json array. There are several ways of creating a Json array, being the most common the following:
- From a string, array of bytes or an input stream of bytes, using the parse functions of the companion object
- From the apply function of the companion object:
- Value parameters:
- seq
immutable seq of JsValue
- Companion:
- object
Represents an immutable number of type BigDecimal
Represents an immutable number of type BigDecimal
- Value parameters:
- value
the value of the number
Represents an immutable number of type BigInt
Represents an immutable number of type BigInt
- Value parameters:
- value
the value of the number
- Companion:
- object
represents an immutable boolean
represents an immutable boolean
- Value parameters:
- value
the value associated, either true or false
- Companion:
- object
Represents an immutable number of type Double
Represents an immutable number of type Double
- Value parameters:
- value
the value of the number
- Companion:
- object
Represents an immutable number of type Int
Represents an immutable number of type Int
- Value parameters:
- value
the value of the number
- Companion:
- object
Represents an immutable number of type Long
Represents an immutable number of type Long
- Value parameters:
- value
the value of the number
- Companion:
- object
It's a special Json value that represents 'nothing'. Inserting nothing in a json leaves the json unchanged. Functions that return a JsValue, return JsNothing when no element is found, what makes them total on their arguments.
It's a special Json value that represents 'nothing'. Inserting nothing in a json leaves the json unchanged. Functions that return a JsValue, return JsNothing when no element is found, what makes them total on their arguments.
val obj = JsObj.empty obj("a") == JsNothing obj.inserted("a",JsNothing) == obj
Represents an immutable number
Represents an immutable number
represents an immutable Json object. There are several ways of creating a Json object, being the most common the following:
represents an immutable Json object. There are several ways of creating a Json object, being the most common the following:
- From a string, array of bytes or an input stream of bytes, using the parse functions of the companion object
- From the apply function of the companion object.
- Value parameters:
- bindings
immutable map of JsValue
- Companion:
- object
Represents the full path location of an element in a json. The easiest way of creating a JsPath is.
Represents the full path location of an element in a json. The easiest way of creating a JsPath is.
- Value parameters:
- positions
keys and/or indexes a path is made up of
- Companion:
- object
Represents any value in a Json that is not a container, i.e. a Json object or a Json array
Represents any value in a Json that is not a container, i.e. a Json object or a Json array
Represents an immutable string
Represents an immutable string
- Value parameters:
- value
the value of the string
- Companion:
- object
Represents any element in a Json. All the json.value types are immutable, being the Json array and Json object implemented with persistent data structures
Represents any element in a Json. All the json.value types are immutable, being the Json array and Json object implemented with persistent data structures
represents a key in a Json object
represents a key in a Json object
- Value parameters:
- name
name of the key
- Companion:
- object
represents a position in a Json. A JsPath is a list of positions.
represents a position in a Json. A JsPath is a list of positions.