Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

JSON::Ext::ParserConfig#parse

parse(source)

Parses the current JSON text source and returns the complete data structure as a result. It raises JSON::ParserError if fail to parse.

See also .new also in 4.0