private function extractPrefixKeyValueData($prefix)
    {
        $result = null;
        
        // If it has key-value data, as evidenced by the raw prefix string
        // being a JSON object (not JSON array), use it.
        if (substr($prefix, 0, 1) === '{') {
            if ($this->isJsonString($prefix)) {
                $result = Json::decode($prefix);
            }
        }
        
        return $result;
    }
private function extractPrefixKeyValueData($prefix)
    {
        $result = null;
        
        // If it has key-value data, as evidenced by the raw prefix string
        // being a JSON object (not JSON array), use it.
        if (substr($prefix, 0, 1) === '{') {
            if ($this->isJsonString($prefix)) {
                $result = Json::decode($prefix);
            }
        }
        
        return $result;
    }
private function extractPrefixKeyValueData ( $ prefix ) { $ result = null ; // If it has key-value data, as evidenced by the raw prefix string // being a JSON object (not JSON array), use it. if ( substr ( $ prefix , 0 , 1 ) === '{' ) { if ( $ this -> isJsonString ( $ prefix ) ) { $ result = Json :: decode ( $ prefix ) ; } } return $ result ; }
If the prefix is a JSON string with key-value data, extract it as an
associative array. Otherwise return null.

@param mixed $prefix The raw prefix string.
@return null|array
If the prefix is a JSON string with key - value data extract it as an associative array . Otherwise return null .