def parse_json_data(data,sep='\t'):
    """ Extract the data from json into a dictionary and a string """
    # Set up the dictionary
    keys = ['date','rower','meters','duration','split','spm',
            'watts','calories','resistance','instructor','workout']
    workout = {}

    # Pointers to portions of the data
    metadata = data['props']['pageProps']['workout']
    stats = data['props']['pageProps']['workout']['workoutStats']

    # Put the data in the dictionary
    workout['workout']    = metadata['workoutVideo']['name']
    workout['instructor'] = metadata['workoutVideo']['instructorName']
    workout['category']   = metadata['workoutVideo']['categoryName']
    workout['rower']      = metadata['rower']['screenName']
    workout['date']       = metadata['startTime']
    workout['calories']   = stats['calories']
    workout['duration']   = stats['elapsedTime']
    workout['resistance'] = stats['hydrowResistance']
    workout['meters']     = stats['meters']
    workout['split']      = stats['splitTime']
    workout['spm']        = stats['strokesPerMinute']
    workout['watts']      = stats['watts']

    # Format the string
    workout_string = sep.join([str(workout[k]) for k in keys])

    return workout, workout_string