docs/static/reference/php/Dagger/JsonValue.html
class JsonValue extends AbstractObject implements IdAble
| | $lastQuery | | from AbstractObject |
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)
No description
from AbstractObject
null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)
No description
from AbstractObject
array
asArray()
Decode an array from json
bool
Decode a boolean from json
int
Decode an integer from json
string
asString()
Decode a string from json
contents(bool|null $pretty = false, string|null $indent = ' ')
Return the value encoded as json
field(array $path)
Lookup the field at the given path, and return its value.
array
fields()
List fields of the encoded object
id()
A unique identifier for this JSONValue.
newBoolean(bool $value)
Encode a boolean to json
newInteger(int $value)
Encode an integer to json
newString(string $value)
Encode a string to json
withContents(Json $contents)
Return a new json value, decoded from the given content
withField(array $path, JsonValue $value)
Set a new field at the given path
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain) No description
| AbstractClient | $client | | | QueryBuilderChain | $queryBuilderChain | |
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)No description
| QueryBuilder | $leafQueryBuilder | | | string | $leafKey | |
| null|array|string|int|float|bool | |
array asArray()Decode an array from json
| array | |
bool asBoolean()Decode a boolean from json
| bool | |
int asInteger()Decode an integer from json
| int | |
string asString()Decode a string from json
| string | |
Json contents(bool|null $pretty = false, string|null $indent = ' ')Return the value encoded as json
| bool|null | $pretty | | | string|null | $indent | |
| Json | |
JsonValue field(array $path)Lookup the field at the given path, and return its value.
| array | $path | |
| JsonValue | |
array fields()List fields of the encoded object
| array | |
AbstractId id()A unique identifier for this JSONValue.
| AbstractId | |
JsonValue newBoolean(bool $value)Encode a boolean to json
| bool | $value | |
| JsonValue | |
JsonValue newInteger(int $value)Encode an integer to json
| int | $value | |
| JsonValue | |
JsonValue newString(string $value)Encode a string to json
| string | $value | |
| JsonValue | |
JsonValue withContents(Json $contents)Return a new json value, decoded from the given content
| Json | $contents | |
| JsonValue | |
JsonValue withField(array $path, JsonValue $value)Set a new field at the given path
| array | $path | | | JsonValue | $value | |
| JsonValue | |
Generated by Doctum, a API Documentation generator and fork of Sami.