- json_decode: documentation ( source)
<?php
$records = [
'{"FirstName":"John","Title":"","Surname":"Smith"}',
'{"FirstName":"Daniel","Title":"","Surname":"Smith"}',
];
foreach ($records as $line) {
$record = json_decode($line);
echo $record->FirstName . "\n"; // etc
}