Hey Folks,
So I have this data
[
{
"user_framework_step_id": 1,
"user_framework_id": 1,
"help_text": "Describe the event or situation that is taking place when they run into the problem."
},
{
"user_framework_step_id": 2,
"user_framework_id": 1,
"help_text": "What problem or challenge do they run into?"
},
{
"user_framework_step_id": 3,
"user_framework_id": 1,
"help_text": "What pain do they experience due to the problem?"
},
{
"user_framework_step_id": 4,
"user_framework_id": 1,
"help_text": "Why does the problem happen in the first place?"
},
{
"user_framework_step_id": 5,
"user_framework_id": 1,
"help_text": "What future state are they trying to achieve?"
}
]
I want to add
user_id:1,
problem_id:2,
To every array item above to get something like below
[
{
"user_framework_step_id": 1,
"user_framework_id": 1,
"help_text": "Describe the event or situation that is taking place when they run into the problem.",
"user_id":1,
"problem_id":2
},
{
"user_framework_step_id": 2,
"user_framework_id": 1,
"help_text": "What problem or challenge do they run into?",
"user_id":1,
"problem_id":2
},
{
"user_framework_step_id": 3,
"user_framework_id": 1,
"help_text": "What pain do they experience due to the problem?",
"user_id":1,
"problem_id":2
},
{
"user_framework_step_id": 4,
"user_framework_id": 1,
"help_text": "Why does the problem happen in the first place?",
"user_id":1,
"problem_id":2
},
{
"user_framework_step_id": 5,
"user_framework_id": 1,
"help_text": "What future state are they trying to achieve?",
"user_id":1,
"problem_id":2
}
]
Can someone let me know how I can achieve this?