There are two objects in JSON I receive, objA & objB, each containing an array.
{
"objA": {
"arrayA": [
{
"varA": "1"
},
{
"varA": "2"
},
{
"varA": "3"
},
{
"varA": "4"
}
]
},
"objB": {
"arrayB": [
{
"varB": "1"
},
{
"varB": "2"
},
{
"varB": "3"
},
{
"varB": "4"
}
]
}
}
I need to write a Handlebars helper function to somehow iterate simultaneously through both objects and print something like this:
<p>1 - 1</p>
<p>2 - 2</p>
<p>3 - 3</p>
<p>4 - 4</p>
Rearranging the JSON is computationally heavy, and practically not under my control. Any idea how may I accomplish this?