def _get_properties_from_options(options):
    properties = dict((x.split('=', 1) for x in options.properties))
    for (key, val) in properties.iteritems():
        try:
            properties[key] = json.loads(val)
        except ValueError:
            pass
    return properties
def _get_properties_from_options(options):
    properties = dict((x.split('=', 1) for x in options.properties))
    for (key, val) in properties.iteritems():
        try:
            properties[key] = json.loads(val)
        except ValueError:
            pass
    return properties