1.20.x common.inc backdrop_json_decode($var)

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

See also

backdrop_json_encode()

Related topics

File

includes/common.inc, line 5723
Common functions that many Backdrop modules will need to reference.

Code

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