You are here

function spaces_json_decode in Spaces 6.3

Compatibility wrapper around json_decode().

1 call to spaces_json_decode()
spaces_menu_items_validate in ./spaces.module
Validate callback for spaces menu editor.

File

./spaces.module, line 963

Code

function spaces_json_decode($json, $assoc = FALSE) {

  // Requires PHP 5.2.
  if (function_exists('json_decode')) {
    return json_decode($json, $assoc);
  }
  return _spaces_json_decode($json);
}