To fix this error edit following file
wp-content\plugins\wordpress-seo\inc\class-wpseo-utils.php
public static function schema_tag( $graph, $class = ‘yoast-schema-graph’ ) {
if ( ! is_array( $graph ) || empty( $graph ) ) {
return false;
}
$output = array(
//’@context’ => ‘https://schema.org’,
‘@graph’ => $graph,
);
return “<script type=’application/ld+json’ class='” . esc_attr( $class ) . “‘>” . self::format_json_encode( $output ) . ‘</script>’ . “\n”;
}