BigQuery Client - Class Json (1.30.1)

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
NameDescription
value string|null

The JSON string value.

get

Get the underlying value.

Returns
TypeDescription
string

type

Get the type.

Returns
TypeDescription
string

formatAsString

Format the value as a string.

Returns
TypeDescription
string

__toString

Format the value as a string.

Returns
TypeDescription
string