Serializing User Role for update_user_meta

I think you are not handling the array part correctly.
The right syntax is –

$new_role = array("advocate" => 1);

The syntax that you have used is shown when you print some array on your screen but it should be written in above format in your PHP code. Currently, you are capturing it as a string and not an array.