function drupal_json_decode

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

See also

drupal_json_encode()

Related topics

14 calls to drupal_json_decode()
DBLogTest::testWatchdog in drupal/core/modules/rest/lib/Drupal/rest/Tests/DBLogTest.php
Writes a log messages and retrieves it via the web API.
EmailTest::testFormEmail in drupal/core/modules/system/lib/Drupal/system/Tests/Form/EmailTest.php
Tests that #type 'email' fields are properly validated.
FormTest::testCheckboxProcessing in drupal/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php
Test default value handling for checkboxes.
FormTest::testDisabledElements in drupal/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php
Test handling of disabled elements.
FormTest::testSelect in drupal/core/modules/system/lib/Drupal/system/Tests/Form/FormTest.php
Tests validation of #type 'select' elements.

... See full list

File

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

Code

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