{"Entry":{"collection":"func","key":"jsonb-typeof","name":"jsonb_typeof","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"},{"descriptions_changed":true,"doc_overhaul":false,"from":"13","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"14"}],"content_hash":"022dfa1c01fdf80f20abca3ec3e3f28be34de7c93d678df0f6ba5b3839b8af66","derived_content_hash":"e28d0f8ba12746f80500685ce3e630adc7ff8226f4ef4ce34f2ab99c2093b265","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:dea1caeac7d851fe14619042fb954c6c6fbce2f947e25c6e0f8d9810e9fcc7d8","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.4","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.817709+08:00","last_version":"20","name":"jsonb_typeof","name_key":"jsonb_typeof","position":16057,"present_in":["9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"5e18c4d7d43447d6506dbf3a155bc708702f2f596cf07457533c7945c927f46c","repair":"wiki-repair-20261023"},"signature":"jsonb_typeof ( jsonb ) → text","signature_count":1,"slug":"jsonb-typeof","source_rev":"wiki-repair-20261023:dea1caeac7d851fe14619042fb954c6c6fbce2f947e25c6e0f8d9810e9fcc7d8","summary":"Returns the type of the top-level JSON value as a text string.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-typeof","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-typeof","SourceRevision":"wiki-repair-20261023:dea1caeac7d851fe14619042fb954c6c6fbce2f947e25c6e0f8d9810e9fcc7d8","Facts":{"description":"Returns the type of the top-level JSON value as a text string. Possible types are object, array, string, number, boolean, and null. (The null result should not be confused with an SQL NULL; see the examples.)","description_html":"Returns the type of the top-level JSON value as a text string. Possible types are \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e, \u003ccode class=\"literal\"\u003earray\u003c/code\u003e, \u003ccode class=\"literal\"\u003estring\u003c/code\u003e, \u003ccode class=\"literal\"\u003enumber\u003c/code\u003e, \u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e, and \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. (The \u003ccode class=\"literal\"\u003enull\u003c/code\u003e result should not be confused with an SQL NULL; see the examples.)","description_zh":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 object、array、string、number、boolean 和 null。（null 的结果不应与 SQL NULL 混淆；参见示例。）","description_zh_html":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e、\u003ccode class=\"literal\"\u003earray\u003c/code\u003e、\u003ccode class=\"literal\"\u003estring\u003c/code\u003e、\u003ccode class=\"literal\"\u003enumber\u003c/code\u003e、\u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e 和 \u003ccode class=\"literal\"\u003enull\u003c/code\u003e。（\u003ccode class=\"literal\"\u003enull\u003c/code\u003e 的结果不应与 SQL NULL 混淆；参见示例。）","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":"Returns the type of the top-level JSON value as a text string. Possible types are object, array, string, number, boolean, and null. (The null result should not be confused with an SQL NULL; see the examples.)","description_html":"Returns the type of the top-level JSON value as a text string. Possible types are \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e, \u003ccode class=\"literal\"\u003earray\u003c/code\u003e, \u003ccode class=\"literal\"\u003estring\u003c/code\u003e, \u003ccode class=\"literal\"\u003enumber\u003c/code\u003e, \u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e, and \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. (The \u003ccode class=\"literal\"\u003enull\u003c/code\u003e result should not be confused with an SQL NULL; see the examples.)","description_zh":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 object、array、string、number、boolean 和 null。（null 的结果不应与 SQL NULL 混淆；参见示例。）","description_zh_html":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e、\u003ccode class=\"literal\"\u003earray\u003c/code\u003e、\u003ccode class=\"literal\"\u003estring\u003c/code\u003e、\u003ccode class=\"literal\"\u003enumber\u003c/code\u003e、\u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e 和 \u003ccode class=\"literal\"\u003enull\u003c/code\u003e。（\u003ccode class=\"literal\"\u003enull\u003c/code\u003e 的结果不应与 SQL NULL 混淆；参见示例。）","examples":[{"expr":"json_typeof('-123.4')","result":"number"},{"expr":"json_typeof('null'::json)","result":"null"},{"expr":"json_typeof(NULL::json) IS NULL","result":"t"}],"html":"\u003ccode class=\"function\"\u003ejsonb_typeof\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"jsonb_typeof ( jsonb ) → text","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":"jsonb-typeof","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jsonb_typeof","Summary":"Returns the type of the top-level JSON value as a text string. Possible types are object, array, string, number, boolean, and null. (The null result should not be confused with an SQL NULL; see the examples.)","BodyHTML":"Returns the type of the top-level JSON value as a text string. Possible types are \u003ccode\u003eobject\u003c/code\u003e, \u003ccode\u003earray\u003c/code\u003e, \u003ccode\u003estring\u003c/code\u003e, \u003ccode\u003enumber\u003c/code\u003e, \u003ccode\u003eboolean\u003c/code\u003e, and \u003ccode\u003enull\u003c/code\u003e. (The \u003ccode\u003enull\u003c/code\u003e result should not be confused with an SQL NULL; see the examples.)","SourceRevision":"wiki-repair-20261023:dea1caeac7d851fe14619042fb954c6c6fbce2f947e25c6e0f8d9810e9fcc7d8","ContentHash":"48caac88518ffba2f9bb808c71f063cdd5d426528a858db96e086ae0215caf83","Payload":{"description":"Returns the type of the top-level JSON value as a text string. Possible types are object, array, string, number, boolean, and null. (The null result should not be confused with an SQL NULL; see the examples.)","description_html":"Returns the type of the top-level JSON value as a text string. Possible types are \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e, \u003ccode class=\"literal\"\u003earray\u003c/code\u003e, \u003ccode class=\"literal\"\u003estring\u003c/code\u003e, \u003ccode class=\"literal\"\u003enumber\u003c/code\u003e, \u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e, and \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. (The \u003ccode class=\"literal\"\u003enull\u003c/code\u003e result should not be confused with an SQL NULL; see the examples.)","signatures":[{"description":"Returns the type of the top-level JSON value as a text string. Possible types are object, array, string, number, boolean, and null. (The null result should not be confused with an SQL NULL; see the examples.)","description_html":"Returns the type of the top-level JSON value as a text string. Possible types are \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e, \u003ccode class=\"literal\"\u003earray\u003c/code\u003e, \u003ccode class=\"literal\"\u003estring\u003c/code\u003e, \u003ccode class=\"literal\"\u003enumber\u003c/code\u003e, \u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e, and \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. (The \u003ccode class=\"literal\"\u003enull\u003c/code\u003e result should not be confused with an SQL NULL; see the examples.)","description_zh":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 object、array、string、number、boolean 和 null。（null 的结果不应与 SQL NULL 混淆；参见示例。）","description_zh_html":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e、\u003ccode class=\"literal\"\u003earray\u003c/code\u003e、\u003ccode class=\"literal\"\u003estring\u003c/code\u003e、\u003ccode class=\"literal\"\u003enumber\u003c/code\u003e、\u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e 和 \u003ccode class=\"literal\"\u003enull\u003c/code\u003e。（\u003ccode class=\"literal\"\u003enull\u003c/code\u003e 的结果不应与 SQL NULL 混淆；参见示例。）","examples":[{"expr":"json_typeof('-123.4')","result":"number"},{"expr":"json_typeof('null'::json)","result":"null"},{"expr":"json_typeof(NULL::json) IS NULL","result":"t"}],"html":"\u003ccode class=\"function\"\u003ejsonb_typeof\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"jsonb_typeof ( jsonb ) → text","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","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":"b9e888fc3803443f50a89894ab8255670d6c54f86c5ea56503fd3474b14be247","Text":"jsonb_typeof ( jsonb ) → text","Returns":"text","Payload":{"description":"Returns the type of the top-level JSON value as a text string. Possible types are object, array, string, number, boolean, and null. (The null result should not be confused with an SQL NULL; see the examples.)","description_html":"Returns the type of the top-level JSON value as a text string. Possible types are \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e, \u003ccode class=\"literal\"\u003earray\u003c/code\u003e, \u003ccode class=\"literal\"\u003estring\u003c/code\u003e, \u003ccode class=\"literal\"\u003enumber\u003c/code\u003e, \u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e, and \u003ccode class=\"literal\"\u003enull\u003c/code\u003e. (The \u003ccode class=\"literal\"\u003enull\u003c/code\u003e result should not be confused with an SQL NULL; see the examples.)","description_zh":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 object、array、string、number、boolean 和 null。（null 的结果不应与 SQL NULL 混淆；参见示例。）","description_zh_html":"以文本字符串形式返回顶级 JSON 值的类型。可能的类型有 \u003ccode class=\"literal\"\u003eobject\u003c/code\u003e、\u003ccode class=\"literal\"\u003earray\u003c/code\u003e、\u003ccode class=\"literal\"\u003estring\u003c/code\u003e、\u003ccode class=\"literal\"\u003enumber\u003c/code\u003e、\u003ccode class=\"literal\"\u003eboolean\u003c/code\u003e 和 \u003ccode class=\"literal\"\u003enull\u003c/code\u003e。（\u003ccode class=\"literal\"\u003enull\u003c/code\u003e 的结果不应与 SQL NULL 混淆；参见示例。）","examples":[{"expr":"json_typeof('-123.4')","result":"number"},{"expr":"json_typeof('null'::json)","result":"null"},{"expr":"json_typeof(NULL::json) IS NULL","result":"t"}],"html":"\u003ccode class=\"function\"\u003ejsonb_typeof\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"jsonb_typeof ( jsonb ) → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
