from typing import List


def format_results(json_results: List) -> str:
    """
    Purpose:
        Format the json to a text response
    Args:
        json_results: crash data
    Returns:
        text_string: formatted text
    """
    text = ""

    if len(json_results) == 0:
        text += "No 311 requests in the past year"

    for item in json_results:

        text += f"On {str(item['adddate']).replace('+00:00','')} request {item['servicerequestid']} was put in at {item['streetaddress']}\n\n"

        if item["details"]:
            text += f" Here are the details: {item['details']}\n"

    return text