Questions tagged as 'json'

2
answers

Add property to Eloquent object in Laravel

Using Laravel I query a table called Purchasing that extracts the fields purchase_id, product_name, price, purchase_date , and returns them to a json object, everything goes well . What I want to do is add a final property with the average...
asked by 05.07.2018 / 02:29
1
answer

Json does not bring all the results

good morning I'm doing an application with Android Studio 3.0.1 with a mysql database and at the time of the query it returns me a json and at the moment of that comes to the app returns me    ["2", "Example2", "Author2", "Editorial2", "F...
asked by 11.04.2018 / 07:37
2
answers

Browse a json in Javascript with jQuery

I have a json like this result= {"cambios":[{"idCard":"5ac8798039a4cff62f780f8e","idList":"5ab7c3aec0fa3a36a67b1c87"},{"idCard":"5ab7c3cc83270bcf19c2774f","idList":"5ab7c3aec0fa3a36a67b1c87"}]} I want to access idCard and idList, I am testi...
asked by 15.04.2018 / 13:27
2
answers

How to get all the data from the same .json file in PHP?

I have the following .json file { "Filmes": [ { "Uuid": "", "ImdbId": "tt0023331", "Title": "Pesn o geroyakh", "Year": "1983", "Director": "Joris Ivens", "A...
asked by 23.10.2018 / 13:02
1
answer

How to get the value of an AsyncTask? Wait until you get the result

First of all, I am somewhat inexperienced (very inexperienced) with AsyncTask and I have two problems. first I pass a user and pass to the Task to compare the ones with those of my DB in the Login section and the second is the same but...
asked by 14.12.2017 / 01:36
1
answer

How to traverse a JSON array in PHP

I need to run a JSON array in PHP Query URL: link { "coError": "0000", "coRpta": null, "feCaducidad": "05\/12\/2019", "listaTramites": [ { "nomTramite": "Rectificaci\u00f3n", "tiTramite": "R", "feTramite": "09\/...
asked by 09.12.2017 / 02:13
2
answers

Problem when showing a json from my localhost

I am developing a app in which I want to connect said app to a api . But I'm having problems receiving the json to be able to show it within my app . I share the code. MainActivity public class MainActivity...
asked by 29.01.2018 / 15:23
1
answer

JSON.parse gives error but with eval correct

I have var data = '[ { cod: 2, tipo: 'MAÑANA' }, { cod: 4, tipo: 'NOCHE' }, { cod: 3, tipo: 'TIENDAS V.O.' } ]'; When doing the json pass I get an error: var aData = JSON.parse(data); With eval goes well. var data = eva...
asked by 12.02.2018 / 10:55
2
answers

Create JSON with its own structure

I'm new to creating JSON, I'm trying to create a JSON in C # which I can do it in a basic way, that is, with the basic structure. I need to obtain the following structure as a result: { "Encabezado ": { "InstitucionId":...
asked by 20.10.2017 / 17:39
2
answers

How to manage the data obtained from json with php

I was doing tests to understand how to correctly handle the data obtained from a file Json and I find the following: Json : { "rates": { "AED": 3.673014, "AFN": 68.343295, "ALL": 115.9367, "AMD": 479.122298 }...
asked by 12.07.2017 / 00:37