JsonValue
class JsonValue extends AbstractObject implements IdAble
Properties
$lastQuery | from AbstractObject |
Methods
No description
Decode an array from json
Decode a boolean from json
Decode an integer from json
Decode a string from json
Return the value encoded as json
List fields of the encoded object
A unique identifier for this JSONValue.
Encode a boolean to json
Encode an integer to json
Details
in
AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
in
AbstractObject at line 19
protected null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
at line 16
array
asArray()
Decode an array from json
at line 25
bool
asBoolean()
Decode a boolean from json
at line 34
int
asInteger()
Decode an integer from json
at line 43
string
asString()
Decode a string from json
at line 52
Json
contents(bool|null $pretty = false, string|null $indent = ' ')
Return the value encoded as json
at line 67
JsonValue
field(array $path)
Lookup the field at the given path, and return its value.
at line 77
array
fields()
List fields of the encoded object
at line 86
AbstractId
id()
A unique identifier for this JSONValue.
at line 95
JsonValue
newBoolean(bool $value)
Encode a boolean to json
at line 105
JsonValue
newInteger(int $value)
Encode an integer to json
at line 115
JsonValue
newString(string $value)
Encode a string to json
at line 125
JsonValue
withContents(Json $contents)
Return a new json value, decoded from the given content
at line 135
JsonValue
withField(array $path, JsonValue $value)
Set a new field at the given path