This doesn’t work with behat 2.x.

I have try this:

    /**
     * @BeforeScenario
     */
    public function setJsonInspector()
    {
        $evaluationMode = $this->getParameter('json', 'evaluation_mode');
        $this->inspector = new JsonInspector($evaluationMode);
    }