Questions tagged as 'json'

2
answers

Create select with html using ajax

I try to create a select in HTML5 by bringing the data from a .js file that has a $.ajax that calls a URL that has data in JSON. But always throws for error: function(data) and I do not know why, the url is fine for what...
asked by 15.11.2016 / 14:09
2
answers

Consuming a JSON from android What's wrong? [closed]

I'm trying to get a Json from a web resource and convert it to string to show it on the screen. I am using android Studio for this and I can not consume that resource. Any idea that is wrong PS: In the manifests I have added the INTERNET and ACC...
asked by 18.10.2016 / 13:11
1
answer

error when parsing JSON - Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', 'got' undefined '

I have the following error: Error: Parse error on line 12:<br> ...0:00:00", "title": " LISTA DE TRABAJO<br> --------------------^<br> Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'...
asked by 25.08.2016 / 21:59
2
answers

Android VOLLEY send json and receive json in response

Good, what I'm trying to do is send a json from Android with Volley to a php that I have on my server, within the php I make some queries and I need to return another json (response) to work with that data. I clarify that PHP works well with ano...
asked by 11.07.2017 / 18:36
1
answer

Can not read property apiRest

I have a problem with this api. this is in html <div id="summary"></div> this is in JS var consuKey = "ck_b04aa6f288ee9a5495dee9c5db0a6b136350e005"; var consuSecr = "cs_1f98d389d0f9b47cd3200023864cf9b7cba50574"; functi...
asked by 28.03.2017 / 18:36
1
answer

Map from Java to Mongo an object with custom structure

I'm using a Mongo database and the backend with Java Spring. Originally it had this structure: "defaultActivation":{ "accounts": ["500026", "500027"] } And I mapped it with the following structure in Java: private Map<String, Set...
asked by 30.06.2016 / 22:24
1
answer

How to get a data from a JSON chain!

I would like to ask you for some help! It turns out that I have my html form of MenuItem, where I want to insert data into my DB of the menuitem table where your FK is menu_id of the table menu, the case is that in my DTO I am programmed like th...
asked by 30.10.2018 / 15:00
2
answers

Get a particular data of a json from php

how are they? I ask you a question, I have the following code in php: function getCotizacionDolar(){ $ch = curl_init(); $headers = [ 'Content-Type: application/json', 'Authorization: BEARER eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ...
asked by 23.09.2018 / 01:05
1
answer

DataTables warning: table id = dataTable - Invalid JSON response (resolved)

I have the following code where I make a query. include_once 'conexion.php'; $sql = "SELECT * FROM herramientas"; $resultado = mysqli_query($conn, $sql); if (!$resultado) { die("Error"); } else { while ($data = mysqli_fetch_assoc($...
asked by 31.07.2018 / 17:02
2
answers

Capture an attribute of a JSON in Angular2 - TypeScript

I have a JSON that is sent to me as an external service from this url. link I capture these data in my angle as follows: I define my file named Base64.ts that defines the shape of my data export interface Base64{ "userId":number;...
asked by 17.10.2018 / 19:05