anIdiotInNY's avatar

why Lumen envolves json response inner two arrays [0]

when Response::json( [ 'data' => 1] ) laravel return {data:1}

but in Lumen response()->json( ['data' => 1] ) return [[{data:1}]] nested enclosed into two arrays

why?

Is there any lumen/laravel method for clear this extra arrays?

0 likes
0 replies

Please or to participate in this conversation.