I think the output JSON should look like this:
{
"days": [
{
"name": "Upper A",
"exercises": [
{
"muscleGroup": "Chest",
"ID": 1,
"exercise": "Bench Press, Barbell",
"index": 0,
"tag": "010100",
"label": "day01Chest00"
},
{
"ID": 1,
"muscleGroup": "Chest",
"exercise": "Bench Press, Barbell",
"index": 1,
"tag": "010101",
"label": "day01Chest01",
"numRatingExercises": 1,
"rateGroup": "0201"
},
{
"ID": 5,
"muscleGroup": "Back",
"exercise": "Pull Up, Bodyweight",
"index": 2,
"tag": "010500",
"label": "day01Back00",
"numRatingExercises": 2,
"rateGroup": "0205"
}
],
"dayIndex": 0
},
{
"name": "Upper B",
"exercises": [
{
"ID": 5,
"muscleGroup": "Back",
"exercise": "Pull Up, Bodyweight",
"index": 0,
"tag": "020500",
"label": "day02Back00"
},
{
"ID": 5,
"muscleGroup": "Back",
"exercise": "Pull Up, Bodyweight",
"index": 1,
"tag": "020501",
"label": "day02Back01",
"numRatingExercises": 1,
"rateGroup": "0105"
},
{
"ID": 1,
"muscleGroup": "Chest",
"exercise": "Bench Press, Barbell",
"index": 2,
"tag": "020100",
"label": "day02Chest00",
"numRatingExercises": 2,
"rateGroup": "0101"
}
],
"dayIndex": 1
}
],
"weeks": 3,
"units": "lb"
}
Where it's basically the full original program but the last exercise for each muscle group in each day has been replaced with the one from the reducedProgram