I have a problem with the json_decode()
when passed string contain "&".
When mobile app send a request as a post containing this type of a UTF encoded string:
[
{
"mobile": [
"123456"
],
"full_name": [
"Bride&Groom"
]
}
json_decode()
a null array. This happens when only send the request through the mobile end.
specific scenario?
We are using Laravel 5.
Request taken like this $friendDetails = $request->friend
then pass the variable through json_decode
$decodedFriend = json_decode($friendDetails ,true);
As headers we are using Oauth and header values are like this.
Authorization Bearer <token>
Content type is application form data
Thanks in advance