Entity JSON encode and manually decode |
(04-18-2021, 09:15 AM)includebeer Wrote: That's not in json format, that's encoded with serialize(). You need to use unserialize() to decode it back to an array.Got it! Thanks. The unserialize() worked perfectly. But I am having following code in my Entity... PHP Code: protected $casts = [ |
Messages In This Thread |
Entity JSON encode and manually decode - by ipmeel - 04-18-2021, 07:40 AM
RE: Entity JSON encode and manually decode - by includebeer - 04-18-2021, 09:15 AM
RE: Entity JSON encode and manually decode - by ipmeel - 04-18-2021, 09:25 AM
RE: Entity JSON encode and manually decode - by includebeer - 04-18-2021, 09:46 AM
RE: Entity JSON encode and manually decode - by InsiteFX - 04-18-2021, 11:49 AM
|