Hello,
Since around the 26th of January, we have been unable to decode the JSON
present within the daily companies house PSC snapshot. Are you aware of
any issues? Or do we need to sanitize the data before processing?
We have tried to decode the JSON (convert it into an array) using a few
different methods (using PHP etc) - what would be the best way for us to
approach this?
http://download.companieshouse.gov.uk/persons-with-significant-control-snapshot-2018-01-26.zip
Very Simple Example:
$contents = file_get_contents(‘persons-with-significant-control-snapshot-2018-03-18.txt’);
$json = json_decode($contents);
if($json == NULL) {
echo “invalid”;
}
Any suggestions would be welcome.
Thank you!
Steve