function drupal_json_decode

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

See also

drupal_json_encode()

Related topics

25 calls to drupal_json_decode()
BlockUiTest::testBlockSearch in drupal/core/modules/block/lib/Drupal/block/Tests/BlockUiTest.php
Test block search.
ContextualDynamicContextTest::testDifferentPermissions in drupal/core/modules/contextual/lib/Drupal/contextual/Tests/ContextualDynamicContextTest.php
Tests contextual links with different permissions.
contextual_contextual_links_view_alter in drupal/core/modules/contextual/contextual.module
Implements hook_contextual_links_view_alter().
DBLogTest::testWatchdog in drupal/core/modules/rest/lib/Drupal/rest/Tests/DBLogTest.php
Writes a log messages and retrieves it via the REST API.
DeleteTest::testDelete in drupal/core/modules/rest/lib/Drupal/rest/Tests/DeleteTest.php
Tests several valid and invalid delete requests on all entity types.

... See full list

File

drupal/core/includes/common.inc, line 4004
Common functions that many Drupal modules will need to reference.

Code

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