luminoso_api/v5_client.py
def jsonify_parameters(params):
    """
    When sent in an authorized REST request, only strings and integers can be
    transmitted accurately. Other types of data need to be encoded into JSON.
    """
    result = {}
    for param, value in params.items():
        if isinstance(value, (int, str)):
            result[param] = value
        else:
            result[param] = json.dumps(value)
    return result
def jsonify_parameters(params):
    """
    When sent in an authorized REST request, only strings and integers can be
    transmitted accurately. Other types of data need to be encoded into JSON.
    """
    result = {}
    for param, value in params.items():
        if isinstance(value, (int, str)):
            result[param] = value
        else:
            result[param] = json.dumps(value)
    return result
def jsonify_parameters ( params ) : result = { } for param , value in params . items ( ) : if isinstance ( value , ( int , str ) ) : result [ param ] = value else : result [ param ] = json . dumps ( value ) return result
When sent in an authorized REST request, only strings and integers can be
    transmitted accurately. Other types of data need to be encoded into JSON.
When sent in an authorized REST request only strings and integers can be transmitted accurately . Other types of data need to be encoded into JSON .