class PG::TextEncoder::JSON

This is a encoder class for conversion of Ruby Hash, Array, String, Numeric, nil values to PostgreSQL JSON/JSONB type.

As soon as this class is used, it requires the ruby standard library ‘json’.