function drush_json_decode

8.0.x output.inc drush_json_decode($var)
6.x output.inc drush_json_decode($var)
7.x output.inc drush_json_decode($var)
4.x drush.inc drush_json_decode($var)
5.x output.inc drush_json_decode($var)
master output.inc drush_json_decode($var)

Converts an HTML-safe JSON string into its PHP equivalent.

We provide a copy of D7's drupal_json_decode since this function is unavailable on earlier versions of Drupal.

See also

drupal_json_encode()

Related topics

3 calls to drush_json_decode()
drush_cache_set_prepare_data in commands/core/cache.drush.inc
drush_value_format in includes/drush.inc
JSONCache::readFile in lib/Drush/Cache/JSONCache.php
Returns the contents of the given filename unserialized.

File

includes/output.inc, line 755

Code

function drush_json_decode($var) {
  return json_decode($var, TRUE);
}