{"Entry":{"collection":"func","key":"json-typeof","name":"json_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":"a3b423a68ddec2e0ff7779338ec464a6c33ddff91de4cad37e1cfbe1f8e68fd7","first_version":"9.4","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.796102+08:00","last_version":"20","name":"json_typeof","name_key":"json_typeof","position":16024,"present_in":["9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"json_typeof ( json ) → text","signature_count":1,"slug":"json-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":"json-typeof","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-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\"\u003ejson_typeof\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"json_typeof ( json ) → text","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-typeof","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"json_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\u003ejson_typeof ( json ) → 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":"09c0994d22646f3606904317d943d9e31bef0d78de8aeb13b0baf693f2a1c04e","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":"json_typeof ( json ) → 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":"94e8227eef8ab10c8fe28b3b12eb519f150462b2735f876cc5fff1d9d121f3cc","Text":"json_typeof ( json ) → 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\"\u003ejson_typeof\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"json_typeof ( json ) → text","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
