Repository URL to install this package:
Version:
4.2.0 ▾
|
# frozen_string_literal: true
module Sequel
# SequelMethods
module SequelMethods
# Override parse_json to return objects as IndifferentHash, so we can use symbols as keys
# https://github.com/sinatra/sinatra/blob/master/lib/sinatra/indifferent_hash.rb
def parse_json(json)
JSON.parse(json, create_additions: false, object_class: Sinatra::IndifferentHash)
end
end
end