Output field with double quotes in twig We have a field, field_text, that we are displaying on the Basic Page content type. It needs to display with double quotes " using twig template. We tried the following below, but it is displaying without the " in the beginning and end. 

How can we display the field_text with double quotes (") in twig?

What we tried:

node--page--full.html.twig

&lt;script type="application/ld+json"&gt;
  {# None of the following worked #}
  "name" : {{ content.field_text.0 }}
  "name" : {{ '\"' ~ content.field_text.0 ~ '\"' }}
  "name" : {{ '\"' }} {{ content.field_text.0 ~ '\"' }} {{ '\"' }}
&lt;/script&gt;
Try with the value of the field and then concatenated with " like the second way:
I tested it with the following:

"name" : {{ content.field_text_test.0['#context']['value'] }} &lt;br&gt;
"name" : {{ '\"' ~ content.field_text_test.0['#context']['value'] ~ '\"' }} &lt;br&gt;
"name" : {{ '\"' }} {{ content.field_text_test.0['#context']['value'] ~ '\"' }} {{ '\"' }}


Here is the result: