Format as JSON.