module Nuggets::JSON::MultiMixin
Public Instance Methods
parse_multi(source, opts = {})
click to toggle source
Preserves multiple (non-unique) names in “non-interoperable” JSON
objects.
# File lib/nuggets/json/multi_mixin.rb 33 def parse_multi(source, opts = {}) 34 parse(source, opts.merge(object_class: MULTI_OBJECT)) 35 end
pretty_print_multi(source, opts = {})
click to toggle source
# File lib/nuggets/json/multi_mixin.rb 37 def pretty_print_multi(source, opts = {}) 38 pretty_generate(parse_multi(source, opts), opts) 39 end
Also aliased as: pp