lib/protocol.js
function implodeData(data) {
	var dataArray = [], field;
	for(field in data) {
		dataArray.push(types.STRING);
		dataArray.push(encodeString(field));
		dataArray.push(types.STRING);
		dataArray.push(encodeString(data[field]));
	}
	return implodeArray(dataArray);
}
function implodeData(data) {
	var dataArray = [], field;
	for(field in data) {
		dataArray.push(types.STRING);
		dataArray.push(encodeString(field));
		dataArray.push(types.STRING);
		dataArray.push(encodeString(data[field]));
	}
	return implodeArray(dataArray);
}
function implodeData ( data ) { var dataArray = [ ] , field ; for ( field in data ) { dataArray . push ( types . STRING ) ; dataArray . push ( encodeString ( field ) ) ; dataArray . push ( types . STRING ) ; dataArray . push ( encodeString ( data [ field ] ) ) ; } return implodeArray ( dataArray ) ; }
Concatenates the associative array in a pipe-delimited string
in the following form FIELD_TYPE_STRING|key|FIELD_TYPE_STRING|value.
Values are encoded as strings.

@param {Array} data an associative array
@return {String} the pipe-delimited string
@private
Concatenates the associative array in a pipe - delimited string in the following form FIELD_TYPE_STRING|key|FIELD_TYPE_STRING|value . Values are encoded as strings .