I have two jsons which have both some same keys and i want to merge them based on the key that have.
my first json: {"3":"test","4":"exam"}
My second json: {"3":"12","4":"19"}
i want to have an array like this:
array("final") {
[3]=> {
"name" => "test"
"quantity" => "12"
}
[4]=> {
"name" => "exam"
"quantity" => "19"
}
}