0

I have a following document with json as value: enter image description here.

But mongodb returns array values instead.

enter image description here

I am using jenssegers plugin for laravel.

How can I get json value as it is from the table, instead of arrays.

I tried json_encode() for this case, but there are other similar issues and I want to retrieve the json value itself.

Fetching query:

$query = \DB::table('v2_reports')
                 ->select('input_controls')
                 ->where('report_key', $report_key)
                 ->first();
Azima
  • 3,835
  • 15
  • 49
  • 95

0 Answers0