I am using paragraphs module for a content type. I have created two paragraph module bundles, each contains 3-4 field types. (HTML editor, text fields and file browser).
I am planning to create a custom template for this particular content type. I used hook_preprocess_page() to to get the saved data and apply logic for ,tpl file.
But I found that the array I've received has 8 level nested and it's very hard to read the data. I tried the below code to read a particular field data.