module JSON

The Ruby-Core JSON module

Public Class Methods

parse_clean(source, opts = {}) click to toggle source

Force JSON.parse to symbolize names @param [String] source the raw JSON string @param [Hash] opts any further options for JSON.parse @return [Hash] the parsed JSON content

# File lib/wire.rb, line 26
def self.parse_clean(source, opts = {})
  opts[:symbolize_names] = true
  parse(source, opts)
end