Getting value from Advanced Custom Fields [closed]

You are trying to use get_field_object, which isn’t correct.

What you should be using is get_field() or the_field().

Example get_field():

$value = get_field( "locations" );

if( $value ) {
    echo $value;
} else {
    echo 'empty';
}

Example the_field():

<p><?php the_field('locations'); ?></p>

Note: ACF has great documentation, you should look it over.