Adding JSON crash handler.