I am having trouble with my array and json_encode. I want it to look like this
"invites": [{
"sent": 0,
"accepted": 0
}],
but it looks like this
"shares": {
"sent": 0,
"installed": 0
},
Currently the code I am using looks like this
'shares' => array(
'sent' => 0,
'installed' => 0
),
Does anyone know how I would go about changing this. Thanks Matt