- 14.17.1 JSON 函数参考14.17.1 JSON Function Reference
- 14.17.2 创建 JSON 值的函数14.17.2 Functions That Create JSON Values
- 14.17.3 搜索 JSON 值的函数14.17.3 Functions That Search JSON Values
- 14.17.4 修改 JSON 值的函数14.17.4 Functions That Modify JSON Values
- 14.17.5 返回 JSON 值属性的函数14.17.5 Functions That Return JSON Value Attributes
- 14.17.6 JSON 表函数14.17.6 JSON Table Functions
- 14.17.7 JSON 模式验证函数14.17.7 JSON Schema Validation Functions
- 14.17.8 JSON 实用函数14.17.8 JSON Utility Functions
本节中描述的函数对 JSON 值执行操作。有关 JSON 数据类型的讨论以及显示如何使用这些函数的更多示例,请参见 第 13.5 节,“JSON 数据类型”。The functions described in this section perform operations on JSON
values. For discussion of the JSON
data type and additional examples showing how to use these
functions, see Section 13.5, “The JSON Data Type”.
对于接受 JSON 参数的函数,如果参数不是有效的 JSON 值,则会发生错误。以 json_doc 表示的参数将被解析为 JSON;以 val 表示的参数不会被解析。For functions that take a JSON argument, an error occurs if the
argument is not a valid JSON value. Arguments parsed as JSON are
indicated by json_doc; arguments
indicated by val are not parsed.
返回 JSON 值的函数总是会对这些值执行规范化(参见 JSON 值的规范化、合并和自动包装),因此会对其进行排序。排序的具体结果随时可能变化;不要依赖它在各版本之间保持一致。Functions that return JSON values always perform normalization of these values (see Normalization, Merging, and Autowrapping of JSON Values), and thus orders them. The precise outcome of the sort is subject to change at any time; do not rely on it to be consistent between releases.
还提供了一组用于操作 GeoJSON 值的空间函数。请参见 第 14.16.11 节,“空间 GeoJSON 函数”。A set of spatial functions for operating on GeoJSON values is also available. See Section 14.16.11, “Spatial GeoJSON Functions”.