Change record status: 
Project: 
Introduced in branch: 
8.x
Description: 

The drupal_json_output() function of Drupal is removed in favor of Symfony\Component\HttpFoundation\JsonResponse.

Drupal 7

$options = _menu_get_options(menu_get_menus(), $available_menus, array('mlid' => 0));
drupal_json_output($options);

Drupal 8

use Symfony\Component\HttpFoundation\JsonResponse;
// ...
$options = _menu_get_options(menu_get_menus(), $available_menus, array('mlid' => 0));
return new JsonResponse($options);
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Other updates done