{"Entry":{"collection":"func","key":"json-each-text","name":"json_each_text","aliases":[],"metadata":{"changed_in":["9.4"],"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":["json_each_text ( json ) → setof key text, value text"],"removed":["json_each_text ( from_json json ) → SETOF key text, value text"]},"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":"c1ed17e77124caff14434ac7e77886d361468e5d4f8171ae8f58570e678601af","first_version":"9.3","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.786964+08:00","last_version":"20","name":"json_each_text","name_key":"json_each_text","position":16009,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"json_each_text ( json ) → setof record ( key text, value text )","signature_count":1,"slug":"json-each-text","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Expands the top-level JSON object into a set of key/value pairs.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-each-text","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-each-text","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Expands the top-level JSON object into a set of key/value pairs. The returned values will be of type text.","description_html":"Expands the top-level JSON object into a set of key/value pairs. The returned \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003es will be of type \u003ccode class=\"type\"\u003etext\u003c/code\u003e.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"},"group":"json","group_label":"Json Functions And Operators","lang":"en","layout":"table-new","pages":["functions-json.html"],"prose_only":false,"signatures":[{"description":"Expands the top-level JSON object into a set of key/value pairs. The returned values will be of type text.","description_html":"Expands the top-level JSON object into a set of key/value pairs. The returned \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003es will be of type \u003ccode class=\"type\"\u003etext\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"select * from json_each_text('{\"a\":\"foo\", \"b\":\"bar\"}')","result":" key | value\n-----+-------\n a   | foo\n b   | bar"}],"html":"\u003ccode class=\"function\"\u003ejson_each_text\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ekey\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"setof record","text":"json_each_text ( json ) → setof record ( key text, value text )","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-each-text","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"json_each_text","Summary":"将顶级 JSON 对象展开为一组键/值对。返回的 value 的类型为text。","BodyHTML":"将顶级 JSON 对象展开为一组键/值对。返回的 \u003cem\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 的类型为\u003ccode\u003etext\u003c/code\u003e。\u003cpre\u003ejson_each_text ( json ) → setof record ( key text, value text )\u003c/pre\u003e将顶级 JSON 对象展开为一组键/值对。返回的 \u003cem\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 的类型为\u003ccode\u003etext\u003c/code\u003e。","SourceRevision":"ca936764","ContentHash":"3d0374b17ee144db68221f0e0dce2fa6f80e744a5a229a95c9a684b9c9f5835d","Payload":{"description_zh":"将顶级 JSON 对象展开为一组键/值对。返回的 value 的类型为text。","description_zh_html":"将顶级 JSON 对象展开为一组键/值对。返回的 \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 的类型为\u003ccode class=\"type\"\u003etext\u003c/code\u003e。","signatures":[{"description_zh":"将顶级 JSON 对象展开为一组键/值对。返回的 value 的类型为text。","description_zh_html":"将顶级 JSON 对象展开为一组键/值对。返回的 \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e 的类型为\u003ccode class=\"type\"\u003etext\u003c/code\u003e。","returns":"setof record","text":"json_each_text ( json ) → setof record ( key text, value text )","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"dff41bab32eba5c67cb5215734dbd16c2eabefa7d2c582e162b38ff43b069c5d","Text":"json_each_text ( json ) → setof record ( key text, value text )","Returns":"setof record","Payload":{"description":"Expands the top-level JSON object into a set of key/value pairs. The returned values will be of type text.","description_html":"Expands the top-level JSON object into a set of key/value pairs. The returned \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003es will be of type \u003ccode class=\"type\"\u003etext\u003c/code\u003e.","description_zh":"","description_zh_html":"","examples":[{"expr":"select * from json_each_text('{\"a\":\"foo\", \"b\":\"bar\"}')","result":" key | value\n-----+-------\n a   | foo\n b   | bar"}],"html":"\u003ccode class=\"function\"\u003ejson_each_text\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esetof record\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ekey\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003etext\u003c/code\u003e )","returns":"setof record","text":"json_each_text ( json ) → setof record ( key text, value text )","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
