Issue #2093161 by rbayliss, haithem_pro, sandipmkhairnar, InternetDevels, longwave, idflood, Sumeet.Pareek, sidharthap, xeniak, ianthomas_uk: Remove all calls to drupal_json_encode() in favour of \Drupal\Component\Utility\Json::encode().