API now correctly flags output as JSON.