import json


def parser(chunks):
    """
    Parse a data chunk into a dictionary; catch failures and return suitable
    defaults
    """

    dictionaries = []
    for chunk in chunks:
        try:
            dictionaries.append(json.loads(chunk))
        except ValueError:
            dictionaries.append({
                'unparsed': chunk
            })

    return dictionaries