Skip to content
Theory · JSONB and Full-Text Search · lesson 1 of 13

json and jsonb

A card pinned to a ledger line is copied as is (json, the repeated price kept) or retyped onto a form (jsonb, one price)

In the ledger every menu item has the same columns: name, category, price. But a latte has options and calories, an espresso has a double shot, and a croissant has no volume at all. The clerk will not add a column for every detail: half the cells would stay empty. He writes such details on a card and pins it to the line.

In this lesson

  • json and jsonb
  • Menu cards
  • Reading: -> and ->>
  • Common mistake
  • Key points