In php, you can:
// Otherwise you get an object ie $arrayFormat-> syntax $arrayFormat = true; $json = json_decode($match, $arrayFormat); // Decodage problem if ($json == null) { // Error }