twig to print paragraph field in controller new to d8. I have a result page where I need to print the field values of a paragraph field into my controller. The paragraph field is called field_classrooms.

text values print fine for example
{{ teacher.field_last_name.value }}

but when I need to print
{{ teacher.field_classrooms.value }}

I get 


  User error: "target_id" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).
You have to get the paragraph entity with .entity

{{ teacher.field_classrooms.entity.field_in_paragraph.value }}


where you can get the fields inside of the paragraph.