Fix for typo in json_encode function name