{"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","derived_content_hash":"3739198495521ff3a0b7425fefbf9c0c773c47e6164d102b04d54b9d0263aa6d","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:f7076a092a636181d40430e705e0f9e1535b16336f388e7e380f5054e610e1a9","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.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"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"855c412713cd6dd2a4242b87160363199e2996a342f81130307a89c719ee48c8","repair":"wiki-repair-20261023"},"signature":"json_typeof ( json ) → text","signature_count":1,"slug":"json-typeof","source_rev":"wiki-repair-20261023:f7076a092a636181d40430e705e0f9e1535b16336f388e7e380f5054e610e1a9","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":"wiki-repair-20261023:f7076a092a636181d40430e705e0f9e1535b16336f388e7e380f5054e610e1a9","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\"\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":"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":"json-typeof","SourceDatabase":"center","Version":"18","Locale":"en","Title":"json_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:f7076a092a636181d40430e705e0f9e1535b16336f388e7e380f5054e610e1a9","ContentHash":"f9d9d1919dedaae8bea3ad7a7822eab6ca15cd699e2a0be055f0d74b13b3a9b8","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\"\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":"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":"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":"以文本字符串形式返回顶级 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\"\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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
