PHP -grouping Json array structure to multidimensional array and json_decode not working

one text

Solution:

it seems $data_arr is an array, according to documentation of json_decode(), the first parameter must be a string. i dont know what is the type of this array but the code must be like this

$new_array = json_decode($data_arr["index"], true);

Source