Questions tagged as 'json'

2
answers

How to send JSONObject to a Web Service?

I'm trying for the first time to consume a Web Service in my Android application, sending data in JSON format. To accomplish the task I have a class to make the connection. public class ConexaoHttpJson { public static JSONObject enviarSoli...
asked by 13.05.2014 / 20:47
3
answers

receive ajax json POST in php and return on success

What am I doing wrong? <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script><script>$(document).ready(function(){$('#btn1').click(function(){vartmp={"Proc":32...
asked by 13.05.2014 / 15:35
2
answers

No Access-Control-Allow-Origin header is present on the requested resource. Origin 'null' is therefore not allowed access. - Phonegap [duplicate]

I have read about this method json and I just do not understand and do not know what to fix, I'm using another domain to get json. Here is my code: $(function(){ var url = "http://website.com/json.php"; $.getJSON(url, function(res...
asked by 11.09.2017 / 17:02
1
answer

FullCalendar does not display the event according to the time

I'm working on a project with FullCalendar, and I'm not able to correctly display the events at their respective times. Food the calendar with a Json (system in PHP): [ { "id":"13", "title":"Varredura no sistema - Verificar falh...
asked by 22.06.2017 / 21:10
1
answer

Delphi - DataSnap - Rest - TServerMethods1

I'm running some Datasnap tests with REST and json. In the ServerMethods unit, which Delphi itself creates, has the function ReverseString , but well, how do I know who sent it? I would like to keep a log of information from...
asked by 07.06.2017 / 16:39
1
answer

Is it possible to add a function in a json?

Let's get into the problem. In datatable.js, to display the columns I define as follows: "aoColumns": [ { "mDataProp": "IdProcesso", "sTitle": "Numero" } ] If you need to perform some function:...
asked by 22.11.2016 / 18:59
1
answer

Problems with restfull api

I have a Restfull API on the local Apache server that returns a list of users from the database (localhost / api / users). I'm using JSONLint to validate my JSON. When I access via browser I get the result and it is valid in JSONLint, w...
asked by 02.10.2015 / 17:00
1
answer

Link of a JSON parameter to a product in Woocommerce

I have a JSON that returns me a list with some flight data: "programa": "multiplus", "qtdOpcoesIda": 50, "qtdOpcoesVolta": 50, "menorTarifa": { "pontos": 15000, "dinheiro": 767.8 }, "taxaEmbarque": { "POA": 29.9, "F...
asked by 22.03.2017 / 11:00
4
answers

Access JSON with multiple objects in JS

I have the following JSON [ { "id": 1, "nome": "Matheus Almeida Siccenna", "cpf": null, "matricula": { "id": 555, "empresa": 1, "unidade": 0, "descricaoUnidade": null, "curso": 1, "descric...
asked by 15.12.2015 / 18:27
1
answer

Google Maps API Return markers with JSON, as it moves the map or zoom

points.php returns a Json with map markers [ { "Id": 1, "Latitude": -19.212355602107472, "Longitude": -44.20234468749999, "Descricao": "Conteúdo do InfoBox 1" }, { "Id": 2, "Latitude"...
asked by 29.12.2015 / 23:35