The main array is:
array (size=2)
0 =>
array (size=2)
'message' => string 'Dear subscriber,
We are working to resolve your link down issue.
It will take approximately 2-4 hours to fix the issue.We appreciate your cordial support and patience during this time.
Thanks for being with us.
Techno' (length=231)
'created_at' => string '01:04 pm 11/01/2022' (length=19)
1 =>
array (size=2)
'message' => string 'Dear subscriber,
We are working to resolve your link down issue.
It will take approximately 2-4 hours to fix the issue.We appreciate your cordial support and patience during this time.
Thanks for being with us.
Techno' (length=231)
'created_at' => string '01:04 pm 11/01/2022' (length=19)
After json_encode, collection becomes like this (Where extra \n, \r are included which we do not want:
'[{"message":"Dear subscriber, \nWe are working to resolve your link down issue. \nIt will take approximately 2-4 hours to fix the issue.We appreciate your cordial support and patience during this time.\n\nThanks for being with us.\nTechno","created_at":"01:04 pm 11\/01\/2022"},{"message":"Dear subscriber, \nWe are working to resolve your link down issue. \nIt will take approximately 2-4 hours to fix the issue.We appreciate your cordial support and patience during this time.\n\nThanks for'... (length=1173)