parse!

parse!(source, opts = {}) Instance Public methods Parse the JSON document source into a Ruby data structure and return it. The bang version of the parse method defaults to the more dangerous values for the opts hash, so be sure only to parse trusted source documents. opts can have the following keys: max_nesting: The maximum depth of nesting allowed in the parsed data structures. Enable depth checking with :max_nesting => anInteger. The parse! methods defaults to not doing max

pretty_generate

pretty_generate(obj, opts = nil) Instance Public methods Generate a JSON document from the Ruby data structure obj and return it. The returned document is a prettier form of the document returned by unparse. The opts argument can be used to configure the generator. See the generate method for a more detailed explanation.

recurse_proc

recurse_proc(result, &proc) Instance Public methods Recursively calls passed Proc if the parsed data structure is an Array or Hash

guess

Kconv.guess(str) => encoding Class Public methods Guess input encoding by NKF.guess

iseuc

Kconv.iseuc(str) => true or false Class Public methods Returns whether input encoding is EUC-JP or not. Note don't expect this return value is MatchData.

isjis

Kconv.isjis(str) => true or false Class Public methods Returns whether input encoding is ISO-2022-JP or not.

issjis

Kconv.issjis(str) => true or false Class Public methods Returns whether input encoding is Shift_JIS or not.

isutf8

Kconv.isutf8(str) => true or false Class Public methods Returns whether input encoding is UTF-8 or not.

kconv

Kconv.kconv(str, to_enc, from_enc=nil) Class Public methods Convert str to to_enc. to_enc and from_enc are given as constants of Kconv or Encoding objects.

toeuc

Kconv.toeuc(str) => string Class Public methods Convert str to EUC-JP