Export Routes don't return JSON - Add conditional JSON.parse