d7 api: drupal_json_encode

Change-Id: Ie99800dfb1597a1f9d1e71a01db53c55f54400b3