import json


def get_result(start, end, path):
    """
    Returns json object of shortest path result.
    """
    if path:
        result = path
    else:
        result = "No path! :( "
    d = {"start": start, "end": end, "path": result}
    return json.dumps(d, indent=4)