import json


def parse_json_site_response(text):
    """
    Helper function to parse and extract the station name from the
    trafiklab JSON site response.
    """
    jdata = json.loads(text)
    data = []
    for site in jdata.get(u'ResponseData', {}):
        if site.get(u'Type') == 'Station':
            data.append({u'name': site['Name']})
    return data