def json_table_to_text(table):
    """
        Transform JSON table to text

        :param table: table to transform into text
        :type table: list
        :return: content of the table in plain text
        :rtype: str
    """
    if not len(table):
        return ""
    header = table[0]
    text = ' '.join(header.keys()) + '\n'
    for l in table:
        text += ' '.join(map(str, l.values())) + '\n'
    return text