jsonb data is stored in a decomposed binary format that makes it slightly slower to input due to added conversion overhead, but significantly faster to process, since no reparsing is needed. jsonb also supports indexing, which can be a significant advantage.
+-------------------------------------------------------------------+
| Header (4B) : 类型=Object, 键值对数=2 |
+-------------------------------------------------------------------+
| JEntry[0] (4B): Key "a" | 类型=String, 长度=1 |
| JEntry[1] (4B): Key "bb" | 类型=String, 长度=2 |
| JEntry[2] (4B): Val 1 | 类型=Numeric, 长度=6 (含对齐后有效长度) |
| JEntry[3] (4B): Val true | 类型=BoolTrue, 长度=0 (数据区不占字节) |
+-------------------------------------------------------------------+
| Payload : "a" | "bb" | [1B 对齐填充] | Numeric(1)二进制字节 |
+-------------------------------------------------------------------+