(params)
return name, args and json.loads(args) or []
Parses a command with a first string param and a second
    json-encoded param
Parses a command with a first string param and a second
    json-encoded param
Parses a command with a first string param and a second json - encoded param
def parse_command(params):
    """Parses a command with a first string param and a second
    json-encoded param"""
    name, args = (params + ' ').split(' ', 1)
    return name, args and json.loads(args) or []
def parse_command ( params ) : name , args = ( params + ' ' ) . split ( ' ' , 1 ) return name , args and json . loads ( args ) or [ ]