src/trie/Provider.cpp
string Provider::getMatchJson(const char* userAgent) {
    string result;
    char *json = new char[JSON_BUFFER_LENGTH];
    fiftyoneDegreesProcessDeviceJSON(
		provider.active->dataSet,
        fiftyoneDegreesGetDeviceOffset(provider.active->dataSet, userAgent),
        json,
        JSON_BUFFER_LENGTH);
    result.assign(json);
    delete json;
    return result;
}
/**
 * Returns a JSON string containing all available properties for the User-Agent.
 * @param User-Agent whose results need to be obtained
 * @returns a JSON string with property and value pairs
 */
Returns a JSON string containing all available properties for the User-Agent.
@param User-Agent whose results need to be obtained
@returns a JSON string with property and value pairs
Returns a JSON string containing all available properties for the User - Agent . @param User - Agent whose results need to be obtained @returns a JSON string with property and value pairs
string Provider::getMatchJson(const char* userAgent) {
    string result;
    char *json = new char[JSON_BUFFER_LENGTH];
    fiftyoneDegreesProcessDeviceJSON(
		provider.active->dataSet,
        fiftyoneDegreesGetDeviceOffset(provider.active->dataSet, userAgent),
        json,
        JSON_BUFFER_LENGTH);
    result.assign(json);
    delete json;
    return result;
}
string Provider :: getMatchJson ( const char * userAgent ) { string result ; char * json = new char [ JSON_BUFFER_LENGTH ] ; fiftyoneDegreesProcessDeviceJSON ( provider . active -> dataSet , fiftyoneDegreesGetDeviceOffset ( provider . active -> dataSet , userAgent ) , json , JSON_BUFFER_LENGTH ) ; result . assign ( json ) ; delete json ; return result ; }
Returns a JSON string containing all available properties for the User-Agent.
Returns a JSON string containing all available properties for the User - Agent .