I suck at formatting, maybe I had a bad foundation. I have a json like this
'first_name'=>'steve', 'msg'=>'something here','profile_id'=>1
and I want to push a new item into it, I wrote
$i = array('first_name'=>'steve', 'msg'=>'something here','profile_id'=>1);
$loginId = array($_GET['login_id']);
array_push($i,$loginId);
echo json_encode($i);
The result I got is strange: