Questions tagged as 'json'

2
answers

How to correctly save an image URL in MySQL database?

I'm testing the targeting of images with the URL. But during the tests, the URL was returned with changes as seen below: URL entered in the database: http://www.meusite.com.br/pastaimagem/logos/imageLogo.jpg URL returned by the bank: h...
asked by 23.02.2015 / 21:33
2
answers

How to access JSON values coming from ajax in a PHP page?

I passed these values via ajax: $.ajax({ url: '/loterias/cadastro.php', type: "POST", data: "{'numeros': '" + numeros + "', 'jogo':'" + jogo + "'}", dataType: 'application/json; charset=utf-8', success: function (data) {...
asked by 27.09.2014 / 17:32
3
answers

How to transform a query into a json?

I'm trying to transform the data returned from a database query in Json format, so far it's almost right, but I believe the format is being created incorrectly! json is being generated as follows! [{"codigo":"1","nome":"Lucas Marioano Perei...
asked by 17.04.2014 / 15:38
1
answer

Send data in json format to php

I know that sending json from PHP to JS is totally viable, but is it possible to send my data via json ajax to PHP?     
asked by 18.12.2015 / 12:05
1
answer

Consume WebService with large data volume

I have a demand where I need to import a JSON file with 65k of records for my Android app, after calling the URL of my REST service the app starts importing the data however crashes after some time, I would like to know the...
asked by 28.08.2015 / 16:00
1
answer

How to structure a mySQL database from a JSON

I have the following structure json test: { "CE": { "Fortaleza": [ { "nome": "Teste", "email": "[email protected]", "cel": "(xx) xx-xx" }, { "nome": "Teste", "email": "[email protected]",...
asked by 12.01.2016 / 20:11
1
answer

Composer - What is it and what is it for?

I have seen several times in projects the file composer.json ! Would you like to know what it is and what it is used for?     
asked by 04.03.2016 / 01:49
1
answer

Return data as JSON using ASP.NET MVC

When developing a web application, using ASP.NET MVC, I need to return the view layer, data as JSON in the following format: { 'title': 'Gallery 1', 'description': 'Description of gallery...', 'thumbnail': [...
asked by 25.12.2015 / 14:52
1
answer

Insert data into an external Json

How do I insert data into an external Json file: var json = { caminho: "img/minhaIMG.png", descricao: "minha descricão" } How can I insert new data into this json file? In my case, I would use the same as a "Database" of my files. A...
asked by 22.11.2015 / 18:34
2
answers

How to protect my JSON application?

I created a unique subdomain to provide data from my tables in JSON, it facilitates requests for both the mobile version and the desktop version of my site, but I would like to protect such data or at least make it difficult to access them , wha...
asked by 19.04.2017 / 14:03