Add method to export a scenario to JSON (to ease logging).