I'm using this code for convert PHP object to associative array. enter image description here Input: enter image description here Then output: enter image description here In "task.type" can't be associative array!
And I want it like this: enter image description here Thanks for much!!
if you need to get associative array from your request, try it:
json_decode($request, true)