BigQuery Client - Class Json (1.31.0)

Reference documentation and code samples for the BigQuery Client class Json.

Represents a value with a data type of JSON.

Example:

use Google\Cloud\BigQuery\BigQueryClient;

$bigQuery = new BigQueryClient();
$json = $bigQuery->json('{"key":"value"}');

Namespace

Google \ Cloud \ BigQuery

Methods

__construct

Parameter
Name Description
value string|null

The JSON string value.

get

Get the underlying value.

Returns
Type Description
string

type

Get the type.

Returns
Type Description
string

formatAsString

Format the value as a string.

Returns
Type Description
string

__toString

Format the value as a string.

Returns
Type Description
string