Lines Matching defs:parse
6 # If _object_ is string-like, parse the string and return the parsed result
10 # The _opts_ argument is passed through to generate/parse respectively. See
11 # generate and parse for their documentation.
14 JSON.parse(object.to_str, opts)
154 def parse(source, opts = {})
155 Parser.new(source, opts).parse
159 # The bang version of the parse method defaults to the more dangerous values
160 # for the _opts_ hash, so be sure only to parse trusted _source_ documents.
164 # structures. Enable depth checking with :max_nesting => anInteger. The parse!
173 def parse!(source, opts = {})
178 Parser.new(source, opts).parse
335 result = parse(source, opts)
464 # If _object_ is string-like, parse the string and return the parsed result as
468 # The _opts_ argument is passed through to generate/parse respectively. See
469 # generate and parse for their documentation.
472 JSON.parse(object.to_str, args.first)