else {
$lines = $sth->fetchall_arrayref;
}
- $json_text = to_json($lines);
+ $json_text = encode_json($lines);
if ($cache_active) {
$cache->set_in_cache( $cache_key, $json_text,
}
}
else {
- $json_text = to_json($errors);
+ $json_text = encode_json($errors);
}
}