Method: Array#pg_json

Defined in:
lib/sequel/extensions/pg_json.rb

#pg_jsonObject

Return a Sequel::Postgres::JSONArray proxy to the receiver. This is mostly useful as a short cut for creating JSONArray objects that didn’t come from the database.



592
593
594
# File 'lib/sequel/extensions/pg_json.rb', line 592

def pg_json
  Sequel::Postgres::JSONArray.new(self)
end