Questions tagged as 'json'

1
answer

return answer with json from laravel and access it with jquery

Greetings community! I'm doing the following Of the customer day with Jquery    In the next function I get an email and send it with ajax using everything right here   How could I return a json array from the server and access it from JQu...
asked by 09.10.2016 / 05:02
1
answer

Send and receive data with Retrofiten AndroidStudio

I have a project that requires to send and receive data from a server. I have been recommended to use Retrofit , but I have only managed to send the data to the server in JSON form. To be honest, I have no idea how to implement data reception...
asked by 09.10.2016 / 00:03
3
answers

Why does not the browser show me anything?

Hi, I am learning the operation of JSON with javascript consuming data from a weather api, but when I run it, it shows me the browser in blank. This example I took it from here, I wanted to know what I'm failing that I can not run the example, t...
asked by 22.04.2016 / 01:36
3
answers

traversing json from php

I build my json from php $marcas = $this->MainModel->getmarcas(); $valores = array(); foreach ($marcas as $value) { $Where["id_marca"] = $value->id_marca; $valores[] = $this->Main...
asked by 10.08.2018 / 17:02
4
answers

Can you pass content from a .txt file to JSON?

I have several .txt files equal to this content Content: 0 69 164 0 71 117 0 73 84 0 79 80 0 82 83 0 82 115 0 83 154 0 84 48 1 69 104 1 71 100 1 73 83 1 79 82 1 82 121 1 83 117 1 84 46 2 69 204 2 71 94 2 73 85 2 79 102 2 82 88 2 82 147 2 83...
asked by 17.10.2016 / 03:51
3
answers

Recover json ajax array

I'm trying to recover the values that passed through an array in json to ajax. this is the code I use: function CompletarEan(cod) { $.ajax({ url: "./Scripts/Phps/Autocompletar.php?pag=autocompletar_Ean&term="+cod, ty...
asked by 04.10.2017 / 21:49
2
answers

how can I go through the next json

I have this json and I want to show the value of its keys either by console or by a window. { "commerce_brand":"MASTERCARD", "commerce_brand":"visa", "commerce_brand":"otros" }     
asked by 30.10.2018 / 15:49
4
answers

Save JSON values obtained from Google Directions

I need to get the data from a JSON obtained through the API of Google Directions . I have this code, which apparently is correct: List<Route> routes = new ArrayList<Route>(); JSONObject jsonData = new JSONObject(data); JSON...
asked by 12.05.2017 / 01:52
4
answers

Display data from my JSON

I can not display the data I get in JSON format, this is the code I use. This is my jquery function, I take the data of a field, I send them by post and I receive the answer which I send by the function cargar_productos that I want to...
asked by 15.05.2018 / 22:18
2
answers

filter json object by date range

accounts =[ {id: "1", name: "item 3", amount: "15" date:"10-10-2018"} {id: "2", name: "item 2", amount: "200" date:"9-11-2018"} {id: "3", name: "item 3", amount: "300" date:"16-12-2018"} ]; I have an array that stores json objects and...
asked by 16.12.2018 / 16:30