lib/megam/core/json_compat.rb
def opts_add_max_nesting(opts)
        if opts.nil? || !opts.has_key?(:max_nesting)
          opts = opts.nil? ? Hash.new : opts.clone
          opts[:max_nesting] = JSON_MAX_NESTING
        end
        opts
      end
# Increase the max nesting for JSON, which defaults
# to 19, and isn't enough for some (for example, a Node within a Node)
# structures.
Increase the max nesting for JSON, which defaults
to 19, and isn't enough for some (for example, a Node within a Node)
structures.
Increase the max nesting for JSON which defaults to 19 and isn ' t enough for some ( for example a Node within a Node ) structures .
def opts_add_max_nesting(opts)
        if opts.nil? || !opts.has_key?(:max_nesting)
          opts = opts.nil? ? Hash.new : opts.clone
          opts[:max_nesting] = JSON_MAX_NESTING
        end
        opts
      end
def opts_add_max_nesting ( opts ) if opts . nil? || ! opts . has_key? ( :max_nesting ) opts = opts . nil? ? Hash . new : opts . clone opts [ :max_nesting ] = JSON_MAX_NESTING end opts end
Increase the max nesting for JSON, which defaults
to 19, and isn't enough for some (for example, a Node within a Node)
structures.
Increase the max nesting for JSON which defaults to 19 and isn ' t enough for some ( for example a Node within a Node ) structures .
opts