def METHOD_NAME(jsonblob, prefix):
    template = "{metric.path} {metric.value} {metric.timestamp}\n"
    input = _tuplify(jsonblob, prefix)
    output = []
    for metric in input:
        line = template.format(metric=metric)
        output.append(line)
    return "".join(output).encode("ascii")