method

fast_generate

ruby latest stable - Class: JSON
fast_generate(obj, opts = nil)
public

Generate a JSON document from the Ruby data structure obj and return it. This method disables the checks for circles in Ruby objects.

WARNING: Be careful not to pass any Ruby data structures with circles as obj argument because this will cause JSON to go into an infinite loop.