Running with json without crashing