As long as $assoc = FALSE and no option is set, json_decode() can be transpiled to JSON.parse()
$assoc = FALSE
json_decode()
JSON.parse()