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 gives is one: dig(:author).key?(:email) and dig(:tags).contains?(...) are the same question asked of a part of it, and the adapters answer them alike. What dig_text 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.