public function parse($value, $annotation = null)
    {
        $json = static::jsonDecode($value);
        if (JSON_ERROR_NONE != json_last_error()) {
            throw new ParserException("Raw value must be a valid JSON string. Invalid value '{$value}' given.");
        }

        return $json;
    }
public function parse($value, $annotation = null)
    {
        $json = static::jsonDecode($value);
        if (JSON_ERROR_NONE != json_last_error()) {
            throw new ParserException("Raw value must be a valid JSON string. Invalid value '{$value}' given.");
        }

        return $json;
    }
public function parse ( $ value , $ annotation = null ) { $ json = static :: jsonDecode ( $ value ) ; if ( JSON_ERROR_NONE != json_last_error ( ) ) { throw new ParserException ( "Raw value must be a valid JSON string. Invalid value '{$value}' given." ) ; } return $ json ; }
Filter a value to be a Json

@param  string                              $value
@param  null                                $annotation Unused
@throws \Minime\Annotations\ParserException
@return mixed
Filter a value to be a Json