<?php $_GET = [ 'myserver' => [ 'state'=>'10' ] ]; $existingJson = '{ "key1": "val1", "key2": "val2" }'; $array = json_decode($existingJson, true); $newArray = array_merge_recursive($array, $_GET); print_r($newArray);
You have javascript disabled. You will not be able to edit any code.