function drupal_json_decode

7.x drupal_json_decode($var)

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

See also


Related topics

9 calls to drupal_json_decode()
DrupalJSONTest::testJSON in drupal/modules/simpletest/tests/common.test
Tests converting PHP variables to JSON strings and back.
DrupalWebTestCase::drupalGetAJAX in drupal/modules/simpletest/drupal_web_test_case.php
Retrieve a Drupal path or an absolute path and JSON decode the result.
DrupalWebTestCase::drupalPostAJAX in drupal/modules/simpletest/drupal_web_test_case.php
Execute an Ajax submission.
DrupalWebTestCase::drupalSetContent in drupal/modules/simpletest/drupal_web_test_case.php
Sets the raw HTML content. This can be useful when a page has been fetched outside of the internal browser and assertions need to be made on the returned page.
FormStateValuesCleanTestCase::testFormStateValuesClean in drupal/modules/simpletest/tests/form.test
Tests form_state_values_clean().

... See full list


drupal/includes/, line 5058
Common functions that many Drupal modules will need to reference.


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