

def _parse_properties(properties):
    '\n    :param properties: JSON items in the form key=value\n    :type properties: [str]\n    :returns: resource JSON\n    :rtype: dict\n    '
    if (len(properties) == 0):
        if sys.stdin.isatty():
            raise DCOSException("We currently don't support reading from the TTY. Please specify an application JSON.\nE.g. dcos marathon app update your-app-id < app_update.json")
        else:
            return util.load_jsons(sys.stdin.read())
    resource_json = {
        
    }
    for prop in properties:
        (key, value) = jsonitem.parse_json_item(prop, None)
        key = jsonitem.clean_value(key)
        if (key in value):
            raise DCOSException('Key {!r} was specified more than once'.format(key))
        resource_json[key] = value
    return resource_json

dataset/ETHPy150Open dcos/dcos-cli/cli/dcoscli/marathon/main.py _parse_properties/VarMisuse@104/237 `resource_json`->`value`