1 drupal.inc drupal_json_encode($var)

Converts a PHP variable into its JavaScript equivalent.

Deprecated

since 1.0.0

See also

backdrop_json_encode()

Related topics

File

core/includes/drupal.inc, line 1091
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_json_encode($var) {
  return backdrop_json_encode($var);
}