protected function buildDataClaim($value)
    {
        @json_encode($value);

        if (($errorCode = json_last_error()) !== JSON_ERROR_NONE) {
            
            throw new UnexpectedValueException($this->jsonErrorMessage($errorCode));
        }

        return array('d', $value);
    }
protected function buildDataClaim($value)
    {
        @json_encode($value);

        if (($errorCode = json_last_error()) !== JSON_ERROR_NONE) {
            
            throw new UnexpectedValueException($this->jsonErrorMessage($errorCode));
        }

        return array('d', $value);
    }
protected function buildDataClaim ( $ value ) { @ json_encode ( $ value ) ; if ( ( $ errorCode = json_last_error ( ) ) !== JSON_ERROR_NONE ) { throw new UnexpectedValueException ( $ this -> jsonErrorMessage ( $ errorCode ) ) ; } return array ( 'd' , $ value ) ; }
Tests if data supplied is JSONifiable
@param $value
@return array
@throws UnexpectedValueException
Tests if data supplied is JSONifiable