---
title: "Discussion on \"PostgreSQL JSONB: Tell a Missing Key from JSON null\" | Hashnode"
description: "Discussion on \"PostgreSQL JSONB: Tell a Missing Key from JSON null\". Use PostgreSQL’s JSONB path operator and jsonb_typeof() to distinguish a missing key, JSON null, and the string \"null\" in five example rows."
url: "https://hashnode.com/posts/postgresql-jsonb-tell-a-missing-key-from-json-null/6b0ed57d03fcc8be620c6551"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [PostgreSQL JSONB: Tell a Missing Key from JSON null](https://sqlotter.hashnode.dev/postgresql-jsonb-tell-a-missing-key-from-json-null?utm_source=hashnode&utm_medium=feed)

Use PostgreSQL’s JSONB path operator and jsonb\_typeof() to distinguish a missing key, JSON null, and the string "null" in five example rows.

14h ago · 3 min read · sqlotter.hashnode.dev  
Read the article

-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#sql](https://hashnode.com/tag/sql)

## Written by

[SqlOtter](https://hashnode.com/@sqlotter)

@sqlotter · Fuzhou,China

  
[View profile](https://hashnode.com/@sqlotter)

SqlOtter : the world's most powerful database management tool

SqlOtter , The world's most powerful database management tool

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
