method

to_json

ruby latest stable - Class: Exception
to_json(*args)
public

Stores class name (Exception) with message m and backtrace array b as JSON string