public function jsonSerialize($intDynamicPosition = null)
    {
        if (get_class($this->__subject) == "ValidFormBuilder\\GroupField") {
            $identifier = $this->__subject->getId();
        } else {
            $identifier = $this->__subject->getName();
            if ($intDynamicPosition > 0) {
                $identifier = $identifier . "_" . $intDynamicPosition;
            }
        }

        $arrReturn = array(
            "subject" => $identifier, // For now, this ony applies to fields and should apply to both fields, area's, fieldsets and paragraphs.
            "comparison" => $this->__comparison,
            "value" => $this->__value
        );

        return $arrReturn;
    }
public function jsonSerialize($intDynamicPosition = null)
    {
        if (get_class($this->__subject) == "ValidFormBuilder\\GroupField") {
            $identifier = $this->__subject->getId();
        } else {
            $identifier = $this->__subject->getName();
            if ($intDynamicPosition > 0) {
                $identifier = $identifier . "_" . $intDynamicPosition;
            }
        }

        $arrReturn = array(
            "subject" => $identifier, // For now, this ony applies to fields and should apply to both fields, area's, fieldsets and paragraphs.
            "comparison" => $this->__comparison,
            "value" => $this->__value
        );

        return $arrReturn;
    }
public function jsonSerialize ( $ intDynamicPosition = null ) { if ( get_class ( $ this -> __subject ) == "ValidFormBuilder\\GroupField" ) { $ identifier = $ this -> __subject -> getId ( ) ; } else { $ identifier = $ this -> __subject -> getName ( ) ; if ( $ intDynamicPosition > 0 ) { $ identifier = $ identifier . "_" . $ intDynamicPosition ; } } $ arrReturn = array ( "subject" => $ identifier , // For now, this ony applies to fields and should apply to both fields, area's, fieldsets and paragraphs. "comparison" => $ this -> __comparison , "value" => $ this -> __value ) ; return $ arrReturn ; }
Convert the Comparion's contents to a json string in order to validate this comparison client-side

@param string $intDynamicPosition
@return array The generated JSON
Convert the Comparion s contents to a json string in order to validate this comparison client - side