{"Entry":{"collection":"func","key":"json-extract-path","name":"json_extract_path","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"d7e2f70b3528132bc250b1ea8cb5a4561714f51b37f44fc939d10a333b26a984","derived_content_hash":"db9a3252a74de254aafa0f804d25fb7cb9c2529de16daabd6b0f58c2306d7c48","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:1e97af1f9ca4cdd2f423ad93e972dad8ffbd0896a5fbdd230d9e318023732794","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.3","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-27T17:57:28.822162+08:00","last_version":"20","name":"json_extract_path","name_key":"json_extract_path","position":16011,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:e7637d6f3c63b42b2f12634b59c17705da4d1ca99dc6a8df2979016d5534035a","receipt_sha256":"6bf61339cf6a6facca353b8c8d815e03a1cbcccc001eb079a7078b2d1fef946e","repair":"wiki-repair-20261023"},"signature":"json_extract_path ( from_json json, VARIADIC path_elems text[] ) → json","signature_count":1,"slug":"json-extract-path","source_rev":"wiki-repair-20261023:1e97af1f9ca4cdd2f423ad93e972dad8ffbd0896a5fbdd230d9e318023732794","summary":"Extracts JSON sub-object at the specified path.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-extract-path","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-extract-path","SourceRevision":"wiki-repair-20261023:1e97af1f9ca4cdd2f423ad93e972dad8ffbd0896a5fbdd230d9e318023732794","Facts":{"description":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_html":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the \u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_zh":"在指定路径下提取 JSON 子对象。（这在功能上相当于#\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","description_zh_html":"在指定路径下提取 JSON 子对象。（这在功能上相当于\u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","version":"18.7"},{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"31b98fa7f00387abf441728c31918bfe8b368642bceeb8bba88a73c3fbd607de","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"json","group_label":"JSON 函数和操作符","lang":"en","layout":"table-new","pages":["functions-json.html"],"prose_only":false,"signatures":[{"description":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_html":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the \u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_zh":"在指定路径下提取 JSON 子对象。（这在功能上相当于#\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","description_zh_html":"在指定路径下提取 JSON 子对象。（这在功能上相当于\u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","examples":[{"expr":"json_extract_path('{\"f2\":{\"f3\":1},\"f4\":{\"f5\":99,\"f6\":\"foo\"}}', 'f4', 'f6')","result":"\"foo\""}],"html":"\u003ccode class=\"function\"\u003ejson_extract_path\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003efrom_json\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejson\u003c/code\u003e, \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003cem class=\"parameter\"\u003e\u003ccode\u003epath_elems\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_extract_path ( from_json json, VARIADIC path_elems text[] ) → json","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-json.html","sha256":"a412feb14a229f1d9f14fa2d7735255aa297d5eb8f2971d744d9dfee659c7cca"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-extract-path","SourceDatabase":"center","Version":"18","Locale":"en","Title":"json_extract_path","Summary":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","BodyHTML":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the \u003ccode\u003e#\u0026gt;\u003c/code\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","SourceRevision":"wiki-repair-20261023:1e97af1f9ca4cdd2f423ad93e972dad8ffbd0896a5fbdd230d9e318023732794","ContentHash":"6aa2e9ac1fd7ec3377350dca5ec265e3f06c85cf3c9f02283b82bf5ed3a098ff","Payload":{"description":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_html":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the \u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","signatures":[{"description":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_html":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the \u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_zh":"在指定路径下提取 JSON 子对象。（这在功能上相当于#\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","description_zh_html":"在指定路径下提取 JSON 子对象。（这在功能上相当于\u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","examples":[{"expr":"json_extract_path('{\"f2\":{\"f3\":1},\"f4\":{\"f5\":99,\"f6\":\"foo\"}}', 'f4', 'f6')","result":"\"foo\""}],"html":"\u003ccode class=\"function\"\u003ejson_extract_path\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003efrom_json\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejson\u003c/code\u003e, \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003cem class=\"parameter\"\u003e\u003ccode\u003epath_elems\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_extract_path ( from_json json, VARIADIC path_elems text[] ) → json","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"df3fe05a83af89c6d8a815c78bb1cb158508bdbf012652f32fcb078013820876","Text":"json_extract_path ( from_json json, VARIADIC path_elems text[] ) → json","Returns":"json","Payload":{"description":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the #\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_html":"Extracts JSON sub-object at the specified path. (This is functionally equivalent to the \u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e operator, but writing the path out as a variadic list can be more convenient in some cases.)","description_zh":"在指定路径下提取 JSON 子对象。（这在功能上相当于#\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","description_zh_html":"在指定路径下提取 JSON 子对象。（这在功能上相当于\u003ccode class=\"literal\"\u003e#\u0026gt;\u003c/code\u003e 操作符，但在某些情况下，将路径写成可变参数列表会更方便。）","examples":[{"expr":"json_extract_path('{\"f2\":{\"f3\":1},\"f4\":{\"f5\":99,\"f6\":\"foo\"}}', 'f4', 'f6')","result":"\"foo\""}],"html":"\u003ccode class=\"function\"\u003ejson_extract_path\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003efrom_json\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ejson\u003c/code\u003e, \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003cem class=\"parameter\"\u003e\u003ccode\u003epath_elems\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext[]\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_extract_path ( from_json json, VARIADIC path_elems text[] ) → json","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
