Add/update elements of an object

I have an Object variable where its values come from a database query. How to add/update elements to this variable in later steps? Thanks.

Using PHP server model

{
	"user" : 
	{
		"id" : 1,
		"group_id" : 3,
		"username" : "Guest"
	}
}
Community Page
Last updated: