{"Entry":{"collection":"func","key":"jsonb-each","name":"jsonb_each","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"8674142c36f293e24ef4dcb4ef70fec9bd3afb2d24189957b10f68b645ecb53e","first_version":"9.4","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-27T17:57:28.833396+08:00","last_version":"20","name":"jsonb_each","name_key":"jsonb_each","position":16031,"present_in":["9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"jsonb_each ( jsonb ) → setof record ( key text, value jsonb )","signature_count":1,"slug":"jsonb-each","source_rev":"b7bd9cda","summary":"Expands the top-level JSON object into a set of key/value pairs.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-each","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-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\"\u003ejsonb_each\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\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\"\u003ejsonb\u003c/code\u003e )","returns":"setof record","text":"jsonb_each ( jsonb ) → setof record ( key text, value jsonb )","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-each","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"jsonb_each","Summary":"将顶级JSON对象展开为一组键/值对。","BodyHTML":"将顶级JSON对象展开为一组键/值对。\u003cpre\u003ejsonb_each ( jsonb ) → setof record ( key text, value jsonb )\u003c/pre\u003e将顶级JSON对象展开为一组键/值对。","SourceRevision":"ca936764","ContentHash":"07e899ba4904668898098bddd8dcf968d46c6dfae6f67bad64f72849115d32f5","Payload":{"description_zh":"将顶级JSON对象展开为一组键/值对。","description_zh_html":"将顶级JSON对象展开为一组键/值对。","signatures":[{"description_zh":"将顶级JSON对象展开为一组键/值对。","description_zh_html":"将顶级JSON对象展开为一组键/值对。","returns":"setof record","text":"jsonb_each ( jsonb ) → setof record ( key text, value jsonb )","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"5441243845fef09e8ea4b8f488b65e9444c8c97059e1fb6ae630f74096f9f1bc","Text":"jsonb_each ( jsonb ) → setof record ( key text, value jsonb )","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\"\u003ejsonb_each\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\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\"\u003ejsonb\u003c/code\u003e )","returns":"setof record","text":"jsonb_each ( jsonb ) → setof record ( key text, value jsonb )","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
