JSON data types
Synopsis
The JSON data types are introduced to support JavaScript Object Notation (JSON) data. The JSON
data type represents the exact text format of JSON while the JSONB
data type represents its binary format in YSQL database. Both JSONB
and JSON
are supported in YSQL.
Description
type_specification ::= { `JSON` | `JSONB` }
JSON
andJSONB
literals can be any text strings that follow the specifications for JavaScript Object Notation.- When data is inserted into
JSONB
column, the text string will be parsed and converted to binary form before storing. - When selected, data of
JSONB
type will be converted and returned in the text format.
当前内容版权归 YugabyteDB 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 YugabyteDB .