by nikeee · 3y ago · 0 comments
It seems that the JSON type is even able to contain JSONB. So why even use these functions, if the normal ones don't care?
There are some other minor advantages of having exact representation of the original - e.g. hashing, signatures, equality comparison is much simpler on the JSON string (you need a strict key order, which is again undefined by the spec, but happens in the real world anyway).
If you're modifying something "in-place" then `jsonb_` functions would be better since they avoid conversion.