<?php $json = '[{"NO":"1","ID_OBJECT":"A045"},{"NO":"2","ID_OBJECT":"A049"}]'; $arr = json_decode($json, true); array_unshift($arr , [ "NO" => "NULL", "ID_OBJECT" => "NULL" ]); $json = json_encode($arr); echo $json;
You have javascript disabled. You will not be able to edit any code.