Trying to have a look on zend2 I'm working on the zend skeleton.
On the Controller, I'm adding the following code:
// Decode JSON objects as PHP objects
$data = $request->getPost('album');
$result = Zend\Json\Json::decode($data); // line 82
And I get the following error:
Fatal error: Class 'Album\Controller\Zend\Json\Json' not found in C:\wamp\www\zf2-skeleton\module\Album\src\Album\Controller\AlbumController.php on line 82
Having a look on the official documentation, but I don't find anything that help me.
Maybe can you help me to understand what is missing?