bigframes.bigquery.parse_json#
- bigframes.bigquery.parse_json(input: Series) Series[source]#
Converts a series with a JSON-formatted STRING value to a JSON value.
Warning
The JSON-related API parse_json is in preview. Its behavior may change in future versions.
Examples:
>>> import bigframes.pandas as bpd >>> import bigframes.bigquery as bbq
>>> s = bpd.Series(['{"class": {"students": [{"id": 5}, {"id": 12}]}}']) >>> s 0 {"class": {"students": [{"id": 5}, {"id": 12}]}} dtype: string >>> bbq.parse_json(s) 0 {"class":{"students":[{"id":5},{"id":12}]}} dtype: extension<dbjson<JSONArrowType>>[pyarrow]
- Parameters:
input (bigframes.series.Series) – The Series containing JSON-formatted strings).
- Returns:
A new Series with the JSON value.
- Return type: