#Return JSON decode array in model's method just doesn't work

11 messages · Page 1 of 1 (latest)

dreamy hearth
#

DD result:

#

When returning it:

#

It is probably something so stupid and dumb, but I am not sure what could be causing it, since I'm literally using the same code, but instead of debugging it, returning it.

idle oxide
#

What do you get when you just return json_decode($this->data, true);?

dreamy hearth
#

I've tried everything and probably is something so stupid I can't even think of it.

#

btw var_dump with the code doesn't seem to work too

crude loom
#

shouldn't you be using a cast?

#

is the data column cast to array ?

#

if it is you can simply use an attribute

#

one sec