Questions tagged as 'json'

2
answers

Codeigniter3 - Get data from a controller by sending an id with ajax

I have been reviewing the site and I have not been able to find an answer to my question. I'm trying from a select with a list of products that I have in a view that when I select one I get updated the existence data of that product that I get f...
asked by 22.03.2018 / 19:54
1
answer

error when passing JSON parameter

When I pass the parameter that a JSON expects, I get the error that "can not convert value type String to expected argument type JSON" (aka 'Optional Dictionary (String, Any') this is the data var params: JSON = ["token": token, "system":...
asked by 21.03.2018 / 17:36
1
answer

Concatenate a view and a json in laravel

How to concatenate a view and a json in laravel 5? $data = Event::get(['id','title','placa','start']);//variables de json //Response()->json($data); return view('Calendario.calendario'); to be able to return the 2 at the same...
asked by 06.03.2018 / 16:18
1
answer

Get the data of a JsonResponse

I have a controller that accesses the method searchUserByName of another controller and returns a JsonResponse , this variable $user I understand that it is a Json right? If I want to get the value of the result that is insid...
asked by 26.02.2018 / 11:34
1
answer

Xamarin Json deserealization

When requesting my Api from my application, Api returns a very long JSON, of which only some data interests me, to process (deselate) my request, I have created a class with the help of the following page < a href="http://json2csharp.com/"> link...
asked by 23.02.2018 / 01:09
3
answers

Pass array obtained from fetch (PDO :: FETCH_ASSOC) to javascript

I'm trying to make a table and I'm having problems with the edit button. I want to click on this button to load the data that is in the table to the form from the BD. So for this I want to send the string I get from the database with fetch to a...
asked by 23.02.2018 / 03:50
2
answers

How can I know if the table exists

The problem is that I do not know how I can check that logeo. I currently do a query directly to a table, when there is perfect nothing happens, it shows me the information. when it does not exist it throws me the following error: Unexpected '...
asked by 13.02.2018 / 00:12
1
answer

Automatic translator

I have the following problem. link I'm using that example to set up my translator. but he does not do anything to me, I do not know what he's doing wrong. In the webroot is the home-in and the home-is home-en.json { "ti...
asked by 03.04.2018 / 23:17
2
answers

Show table in HTML with Ajax and Json

I have the following JSON object and would like to show it in an HTML table: { "data":[ { "0":"328", "tr_id":"328", "1":"USE", "tr_oficina":"USE", "2":"4", "num_ofic...
asked by 11.03.2018 / 02:45
1
answer

Problem to send json between Activitys with retorfit

I have the following problem I am trying to bring a list of objects that I get from a json , from an activity through a controller. Within the code that I am attaching, what I am looking for is to pass the list of specialties to my MainAct...
asked by 01.02.2018 / 17:35