Convert url encoded data to json

I expected to get JSON data from a webhook. I get this form of data below and the content/type was application/x-www-form-urlencoded instead of application/json results %5B6%5D%5Bid%5D=7&results%5B18%5D%5Bid%5D=19&results%5B0%5D%5Bname%5D=data+autre&results%5B1%5D%5Bname%5D=data2+autre&assessments%5B0%5D%5Bstatus%5D=finish&results%5B10%5D%5Bscore%5D=6&results%5B7%5D%5Bname%5D=data3&results%5B6%5D%5Bname%5D=Accept&results%5B8%5D%5Bname%5D=data4&results%5B2%5D%5Bname%5D=autres&results%5B3%5D%5Bname%5D=data6&results%5B4%5D%5Bname%5D=autre&results%5B5%5D%5Bname%5D=autres3&results%5B9%5D%5Bname%5D=data8&results%5B17%5D%5Bid%5D=18&reports%5B4%5D%5Bid%5D=8&reports%5B4%5D%5Bis_available%5D=0&results%5B7%5D%5Bscore%5D=7&results%5B17%5D%5Bscore%5D=4&reports%5B1%5D%5Bis_available%5D=1&assessments%5B2%5D%5Blink%5D=https%3A%2F%2Ftest%3D123&lastname=aaa&results%5B3%5D%5Bscore%5D=10&reports%5B3%5D%5Bid%5D=15&results%5B16%5D%5Bid%5D=17&register_link=&results%5B7%5D%5Bid%5D=8&results%5B19%5D%5Bid%5D=20&results%5B13%5D%5Bscore%5D=5&assessments%5B1%5D%5Bstatus%5D=todo&results%5B4%5D%5Bid%5D=5&status=accepted&results%5B9%5D%5Bid%5D=10&results%5B15%5D%5Bid%5D=16&results%5B3%5D%5Bid%5D=4&reports%5B4%5D%5Bname%5D=data9&reports%5B3%5D%5Bname%5D=data10&results%5B18%5D%5Bscore%5D=1&email=test@test.com&results%5B9%5D%5Bscore%5D=6&synthesis= How can I convert this to json ? Thanks

Laravel always gets empty from JSON post

I’m working on Laravel version 5.2. I’ve been trying to get json data from post. I always get empty data. I also have tried to use solutions found on the internet but there’s nothing works. for example, $request->json()->all(); Input::get(‘data’); $request->get(‘data’); $request->data; Input::all(); json_decode(request()->getContent(), true); json_decode($request->getContent(), true); json_decode(request()->get(‘payload’)); json_decode($request->get(‘payload’)); $request->input(‘data’); Here is my javascript code, $.ajax({…

Decoding json array inside future builder

this is json which will be decode { “id”: “RG-01-190919-00000001”, “note”: “”, “items”: null, “outlet”: { “operational_times”: [{ “day_name”: “Monday”, “is_holiday”: false, “operational_times”: [{ “time_to_open”: “07.00”, “time_to_close”: “17.00” }] }] } } json comes from a database that I call with a web service and I display with a future builder, like this FutureBuilder( future:…

What is the json error? (PHP json_encode)

It doesn’t work and I don’t know why. I’ve tried turning column 2 into a string (code below) but that fails to work. <?php $url = ‘https://discordapp.com/api/v6/science’; $data = json_decode($response); $ch = curl_init(); $json = array( “channel_id” => $data->channel->id, “channel_type” => $data->channel->type, “client_performance_cpu” => 48, “client_performance_memory” => 833620, “client_send_timestamp” => time(), “client_track_timestamp” => time(), “client_uuid”…

Cross-Origin Read Blocking (CORB) problem with KrakenD – “application/json” response from POST rejected by Chrome

auth.js:84 Cross-Origin Read Blocking (CORB) blocked cross-origin response http://myserver/auth with MIME type application/json. This doesn’t work with Firefox either, although the Firefox error message is more generic. Oddly enough, Firefox’s Network panel shows that the response I wanted actually gets delivered, the browser just doesn’t accept the response to pass it on to my JavaScript…