I have a little problem, I'm in this situation: I have a json that I parse with no problems with json_decode making an object, in this array I have various values, in particular I have an array called "message" then I want to add values to this $jsonObj->message
for example:
$jsonObj->message->hello = 'example';
now I want to add another object to $jsonObj->message
without removing other values then, what I want is:
$jsonObj->message->hello; // this is auto generated from the json
$jsonObj->message ADD $json2;
So I should have $jsonObj->message->somethingIntoJson2
and $jsonObj->message->hello
too;
Thank you.