{"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","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"],"signature":"jsonb_typeof ( jsonb ) → text","signature_count":1,"slug":"jsonb-typeof","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"","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":"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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-typeof","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"jsonb_typeof","Summary":"以文本字符串形式返回顶级JSON值的类型。可能的类型有object、array、string、number、boolean和null。（null 的结果不应与 SQL NULL 混淆；参见示例。）","BodyHTML":"以文本字符串形式返回顶级JSON值的类型。可能的类型有\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和\u003ccode\u003enull\u003c/code\u003e。（\u003ccode\u003enull\u003c/code\u003e 的结果不应与 SQL NULL 混淆；参见示例。）\u003cpre\u003ejsonb_typeof ( jsonb ) → text\u003c/pre\u003e以文本字符串形式返回顶级JSON值的类型。可能的类型有\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和\u003ccode\u003enull\u003c/code\u003e。（\u003ccode\u003enull\u003c/code\u003e 的结果不应与 SQL NULL 混淆；参见示例。）","SourceRevision":"ca936764","ContentHash":"fc04fdf4158c9daeea736a0d230764348fb6dffa45fc64befd044f7072fd3ceb","Payload":{"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 混淆；参见示例。）","signatures":[{"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 混淆；参见示例。）","returns":"text","text":"jsonb_typeof ( jsonb ) → 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.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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
