blueprinter icon indicating copy to clipboard operation
blueprinter copied to clipboard

Add empty JSON as a valid empty type

Open ramongr opened this issue 3 years ago • 1 comments

Adds a new empty type called Blueprinter::EMPTY_JSONB to represent possible empty values from jsonb columns in databases.

ramongr avatar Sep 07 '21 14:09 ramongr

Correct me if I'm wrong, the most likely scenario for using JSONB is when there is a JSONB column in a postgresql column. However, when you access that corresponding attribute in Rails, it would already be deserialized into a Hash right? So I don't see why we need a JSONB type here.

philipqnguyen avatar Sep 20 '21 22:09 philipqnguyen