{"Entry":{"collection":"func","key":"json-each","name":"json_each","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":false,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":["json_each ( json ) → setof key text, value json"],"removed":["json_each ( json ) → SETOF key text, value json"]},"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":"1fd29dd0a685b5b14d45aa35bf9523ebe7c5a3b943787745fee5b4c529d8e198","first_version":"9.3","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-27T17:57:28.817511+08:00","last_version":"20","name":"json_each","name_key":"json_each","position":16008,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"json_each ( json ) → setof record ( key text, value json )","signature_count":1,"slug":"json-each","source_rev":"b7bd9cda","summary":"Expands the top-level JSON object into a set of key/value pairs.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-each","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-each","SourceRevision":"b7bd9cda","Facts":{"description":"Expands the top-level JSON object into a set of key/value pairs.","description_html":"Expands the top-level JSON object into a set of key/value pairs.","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.","description_html":"Expands the top-level JSON object into a set of key/value pairs.","description_zh":"","description_zh_html":"","examples":[{"expr":"select * from json_each('{\"a\":\"foo\", \"b\":\"bar\"}')","result":" key | value\n-----+-------\n a   | \"foo\"\n b   | \"bar\""}],"html":"\u003ccode class=\"function\"\u003ejson_each\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\"\u003ejson\u003c/code\u003e )","returns":"setof record","text":"json_each ( json ) → setof record ( key text, value json )","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-each","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"json_each","Summary":"将顶级JSON对象展开为一组键/值对。","BodyHTML":"将顶级JSON对象展开为一组键/值对。\u003cpre\u003ejson_each ( json ) → setof record ( key text, value json )\u003c/pre\u003e将顶级JSON对象展开为一组键/值对。","SourceRevision":"ca936764","ContentHash":"21a6dec22c8881290953c17e3877161d1593e76abc8df5ce19d37fdcdc387392","Payload":{"description_zh":"将顶级JSON对象展开为一组键/值对。","description_zh_html":"将顶级JSON对象展开为一组键/值对。","signatures":[{"description_zh":"将顶级JSON对象展开为一组键/值对。","description_zh_html":"将顶级JSON对象展开为一组键/值对。","returns":"setof record","text":"json_each ( json ) → setof record ( key text, value json )","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":"cd6226e718580621524145c7fec43848623bfda8ed69fc4bc09ba34433d2acf5","Text":"json_each ( json ) → setof record ( key text, value json )","Returns":"setof record","Payload":{"description":"Expands the top-level JSON object into a set of key/value pairs.","description_html":"Expands the top-level JSON object into a set of key/value pairs.","description_zh":"","description_zh_html":"","examples":[{"expr":"select * from json_each('{\"a\":\"foo\", \"b\":\"bar\"}')","result":" key | value\n-----+-------\n a   | \"foo\"\n b   | \"bar\""}],"html":"\u003ccode class=\"function\"\u003ejson_each\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\"\u003ejson\u003c/code\u003e )","returns":"setof record","text":"json_each ( json ) → setof record ( key text, value json )","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
