Added JSON dump functionality for routes