Tweaked API route to default to JSON format