Module: ActiveRecord::Refined::AST::JsonDocument

Included in:
JsonPath
Defined in:
lib/active_record/refined/ast.rb

Overview

The JSON operations read a document, and what dig_json gives is one: dig_json(:author).key?(:email) and dig_json(:tags).contains?(...) are the same question asked of a part of it, and the adapters answer them alike. What dig gives is text, and reading that as a document again is where they part company: SQLite parses it back and MySQL takes it as written, where PostgreSQL has no such function for text.