src/trie/Provider.cpp
string Provider::getMatchJson(const map<string, string>& headers) {
	string result;
	char *json = new char[JSON_BUFFER_LENGTH];
    fiftyoneDegreesDeviceOffsets *offsets = matchForHttpHeaders(&headers, 0, 0);
    fiftyoneDegreesProcessDeviceOffsetsJSON(
		provider.active->dataSet,
        offsets,
        json,
        JSON_BUFFER_LENGTH);
	result.assign(json);
	delete json;
	return result;
}
/**
 * Returns a JSON string containing all available properties for the HTTP header
 * pairs.
 * @param headers HTTP headers to use to detect the device and return JSON
 * @returns a JSON string with property and value pairs
 */
Returns a JSON string containing all available properties for the HTTP header
pairs.
@param headers HTTP headers to use to detect the device and return JSON
@returns a JSON string with property and value pairs
Returns a JSON string containing all available properties for the HTTP header pairs . @param headers HTTP headers to use to detect the device and return JSON @returns a JSON string with property and value pairs
string Provider::getMatchJson(const map<string, string>& headers) {
	string result;
	char *json = new char[JSON_BUFFER_LENGTH];
    fiftyoneDegreesDeviceOffsets *offsets = matchForHttpHeaders(&headers, 0, 0);
    fiftyoneDegreesProcessDeviceOffsetsJSON(
		provider.active->dataSet,
        offsets,
        json,
        JSON_BUFFER_LENGTH);
	result.assign(json);
	delete json;
	return result;
}
string Provider :: getMatchJson ( const map < string , string > & headers ) { string result ; char * json = new char [ JSON_BUFFER_LENGTH ] ; fiftyoneDegreesDeviceOffsets * offsets = matchForHttpHeaders ( & headers , 0 , 0 ) ; fiftyoneDegreesProcessDeviceOffsetsJSON ( provider . active -> dataSet , offsets , json , JSON_BUFFER_LENGTH ) ; result . assign ( json ) ; delete json ; return result ; }
Returns a JSON string containing all available properties for the HTTP header
 pairs.
Returns a JSON string containing all available properties for the HTTP header pairs .