After several attempts, I have to ask for some help to solve this. Below I have some plain JSON:
{
"test": {
"r1": [{
"id": 1,
"status": true
}, {
"id": 2,
"status": true
}],
"r2": [{
"id": 1,
"status": false
}, {
"id": 2,
"status": false
}]
}
}
This works fine with javascript when I'm reading from a simple .txt file, but I want to create this JSON from PHP. I can make a two dimensional associative array, but for this it seems that I need a three dimensional associative array, and I can't solve that! Could someone give me a hint how that would look or alternative solutions?