It is my first time to use Mysql json column type when I make post request via Laravel api to make new user like this
"username:andy21, password:123456, profile:{"home_town":"germany"}"
I save profile in the Json column when I retrieve it, it have backslash before every " on the json object like this
"profile":"{\"home_town\":\"germany\"}"
my return in laravel controller looks like this
return response()->json(['profile'=>$user]);
why it have these backslashes and how to remove it ?