Questions tagged as 'json'

1
answer

return help with Json

How to return array with these results in php points total 25779 HTML 1793 CSS 2666 Design 216 C# 0 Databases 0 $minhaarray [] = array( "points"=>$event->total, "name"=>$category->name, ); echo...
asked by 12.11.2016 / 18:47
2
answers

Problem with Json_encode

I have the following code? if($result = $mysqli->query($query)){ while($row = $result->fetch_array(MYSQLI_ASSOC)) { $temp[] = $row; } } $result->close(); foreach ($temp as $x) { $x['seat_number']; //OU...
asked by 23.01.2017 / 03:53
3
answers

$ .getJSON - How to store responseJSON in a Variable?

I am assembling a Javascript Object with the following constructor: var jsonResult = ""; // Inciei uma variável fora do escopo da Função function criarDicionario(lang) { this.lang = lang; this.dicio = $.getJSON('pt-br.json').done(func...
asked by 13.02.2017 / 17:56
2
answers

Receiving JSON Data - PHP

Good afternoon. I tried to search here, but I did not find what I needed. I'm working with JSON, and I have received the following return string: { "success": 1, "return": { "100025362": { "pair": "BRL",...
asked by 19.01.2017 / 18:30
2
answers

How to list array values (AngularJS) using PHP?

I would like to know how to perform the listing (" foreach ") of my $scope.items array within PHP so that I can work individually with each value entered. JavaScript: var app = angular.module('app', []); app.controller('control...
asked by 30.12.2016 / 03:31
1
answer

Can I use JSON to save ArrayLists to Shared Preferences?

I'm developing an application in a college project and I'm creating the control part, I will not mess with the server part for now because I do not know much about it. I am creating functions to generate some Arrays with the items of m...
asked by 28.10.2016 / 22:18
1
answer

Swift json deserialize

Hello, I have the following code to deserialize a json: let urlFinal = URLSERVIDOR+"/Geral/consulta?idcliente=\(id)" let jsonUrl = urlFinal let session = NSURLSession.sharedSession() let shotsUrl = NSURL(string: jsonUrl...
asked by 06.11.2016 / 01:41
1
answer

Return the data to the View using Json.net or javascript- asp.net mvc

I need to return the data to fill a script, public JsonResult BuscaImagens() { List<Object> resultado = new List<object>(); resultado.Add(new { IdImagem = 1,...
asked by 23.10.2016 / 23:05
1
answer

Google Maps Geolocation API

I want to check the status of my client to show the establishments near that region. How do I get this information through the Google Maps Geolocation API? Is there a better way? The site I've been working on is PiscouAchou.com     
asked by 24.10.2016 / 19:47
1
answer

How to make the Google map dynamic

I'm creating a car tracking app and I'm having a problem, I'm trying to make the map update dynamically without the need to update the page manually, this page receives the location through a .json file in the code I'm calling a file, but the in...
asked by 29.12.2015 / 19:44