Method: Sequel::Postgres::JSONBaseOp#is_not_json
- Defined in:
- lib/sequel/extensions/pg_json_ops.rb
#is_not_json(opts = OPTS) ⇒ Object
Return whether the json object cannot be parsed as JSON. The opposite of #is_json. See #is_json for options.
json_op.is_not_json # json IS NOT JSON
json_op.is_not_json(type: :object) # json IS NOT JSON OBJECT
json_op.is_not_json(unique: true) # json IS NOT JSON WITH UNIQUE
334 335 336 |
# File 'lib/sequel/extensions/pg_json_ops.rb', line 334 def is_not_json(opts=OPTS) _is_json(IS_NOT_JSON, opts) end |